mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
deface: use opencv-python
This commit is contained in:
parent
ea60f68a87
commit
e4467c1cc8
@ -29,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
numpy
|
||||
onnx
|
||||
onnxruntime # Nixpkgs onnxruntime is missing CUDA support
|
||||
opencv4
|
||||
opencv-python
|
||||
scikit-image
|
||||
tqdm
|
||||
];
|
||||
@ -39,11 +39,6 @@ python3.pkgs.buildPythonApplication rec {
|
||||
''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "opencv-python" "opencv"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user