librealsense,python3Packages.pyrealsense2: refactor to add cudaSupport and python bindings
This commit is contained in:
@@ -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 { };
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user