librealsense,python3Packages.pyrealsense2: refactor to add cudaSupport and python bindings

This commit is contained in:
freezeboy
2020-08-14 15:47:17 -07:00
committed by Jon
parent d22cd376e5
commit ff8e1825ab
4 changed files with 66 additions and 2 deletions
+8
View File
@@ -17710,6 +17710,14 @@ in
librealsense = callPackage ../development/libraries/librealsense { };
librealsenseWithCuda = callPackage ../development/libraries/librealsense {
cudaSupport = true;
};
librealsenseWithoutCuda = callPackage ../development/libraries/librealsense {
cudaSupport = false;
};
libsass = callPackage ../development/libraries/libsass { };
libsepol = callPackage ../os-specific/linux/libsepol { };
+15
View File
@@ -2618,6 +2618,21 @@ in {
pyhs100 = callPackage ../development/python-modules/pyhs100 { };
pyrealsense2 = toPythonModule (pkgs.librealsense.override {
enablePython = true;
pythonPackages = self;
});
pyrealsense2WithCuda = toPythonModule (pkgs.librealsenseWithCuda.override {
enablePython = true;
pythonPackages = self;
});
pyrealsense2WithoutCuda = toPythonModule (pkgs.librealsenseWithoutCuda.override {
enablePython = true;
pythonPackages = self;
});
pytest = if isPy3k then self.pytest_5 else self.pytest_4;
pytest_5 = callPackage ../development/python-modules/pytest {