deface: 1.4.0 -> 1.5.0
Diff: https://github.com/ORB-HD/deface/compare/refs/tags/v1.4.0...v1.5.0 Changelog: https://github.com/ORB-HD/deface/releases/tag/v1.5.0
This commit is contained in:
parent
560737213b
commit
75a79cb882
@ -8,21 +8,23 @@
|
|||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "deface";
|
pname = "deface";
|
||||||
version = "1.4.0";
|
version = "1.5.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = python3.pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ORB-HD";
|
owner = "ORB-HD";
|
||||||
repo = "deface";
|
repo = "deface";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-tLNTgdnKKmyYHVajz0dHIb7cvC1by5LQ5CFIbMvPEYk=";
|
hash = "sha256-/mXWeL6OSgW4BMXtAZD/3UxQUGt7UE5ZvH8CXNCueJo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
build-system = with python3.pkgs; [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
imageio
|
imageio
|
||||||
imageio-ffmpeg
|
imageio-ffmpeg
|
||||||
numpy
|
numpy
|
||||||
@ -38,17 +40,21 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
|
''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
|
||||||
];
|
];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml requirements.txt --replace "opencv-python" "opencv"
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace-fail "opencv-python" "opencv"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
|
pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Video anonymization by face detection";
|
description = "Video anonymization by face detection";
|
||||||
homepage = "https://github.com/ORB-HD/deface";
|
homepage = "https://github.com/ORB-HD/deface";
|
||||||
license = licenses.mit;
|
changelog = "https://github.com/ORB-HD/deface/releases/tag/v${version}";
|
||||||
maintainers = with maintainers; [ lurkki ];
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ lurkki ];
|
||||||
mainProgram = "deface";
|
mainProgram = "deface";
|
||||||
|
# terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
|
||||||
|
broken = stdenv.hostPlatform.system == "aarch64-linux";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user