diff options
author | Gaetan Lepage <gaetan@glepage.com> | 2024-06-21 14:00:51 +0200 |
---|---|---|
committer | Gaetan Lepage <gaetan@glepage.com> | 2024-06-21 20:25:54 +0200 |
commit | 75a79cb882f6899c3353698d4c8505eb4d0151e2 (patch) | |
tree | 5e52f442c531ab5bc6334661d9fa3bf5ad2f45bd /pkgs/applications/video/deface | |
parent | 560737213b77b03824594fa4cc73c6f3fbcdd16e (diff) |
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
Diffstat (limited to 'pkgs/applications/video/deface')
-rw-r--r-- | pkgs/applications/video/deface/default.nix | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/pkgs/applications/video/deface/default.nix b/pkgs/applications/video/deface/default.nix index 428275535af49..0b0a2d0859810 100644 --- a/pkgs/applications/video/deface/default.nix +++ b/pkgs/applications/video/deface/default.nix @@ -8,21 +8,23 @@ python3.pkgs.buildPythonApplication rec { pname = "deface"; - version = "1.4.0"; - format = "pyproject"; + version = "1.5.0"; + pyproject = true; + + disabled = python3.pythonOlder "3.8"; src = fetchFromGitHub { owner = "ORB-HD"; repo = "deface"; - rev = "v${version}"; - hash = "sha256-tLNTgdnKKmyYHVajz0dHIb7cvC1by5LQ5CFIbMvPEYk="; + rev = "refs/tags/v${version}"; + hash = "sha256-/mXWeL6OSgW4BMXtAZD/3UxQUGt7UE5ZvH8CXNCueJo="; }; - nativeBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ setuptools-scm ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ imageio imageio-ffmpeg numpy @@ -38,17 +40,21 @@ python3.pkgs.buildPythonApplication rec { ''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"'' ]; - patchPhase = '' - substituteInPlace pyproject.toml requirements.txt --replace "opencv-python" "opencv" + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "opencv-python" "opencv" ''; pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ]; - meta = with lib; { + meta = { description = "Video anonymization by face detection"; homepage = "https://github.com/ORB-HD/deface"; - license = licenses.mit; - maintainers = with maintainers; [ lurkki ]; + changelog = "https://github.com/ORB-HD/deface/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ lurkki ]; mainProgram = "deface"; + # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' + broken = stdenv.hostPlatform.system == "aarch64-linux"; }; } |