deface: init at 1.4.0

+58
+56
pkgs/applications/video/deface/default.nix
··· 1 + { lib 2 + , stdenv 3 + , python3 4 + , fetchFromGitHub 5 + , makeWrapper 6 + , pkgs 7 + }: 8 + 9 + python3.pkgs.buildPythonApplication rec { 10 + pname = "deface"; 11 + version = "1.4.0"; 12 + format = "pyproject"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "ORB-HD"; 16 + repo = "deface"; 17 + rev = "v${version}"; 18 + hash = "sha256-tLNTgdnKKmyYHVajz0dHIb7cvC1by5LQ5CFIbMvPEYk="; 19 + }; 20 + 21 + nativeBuildInputs = with python3.pkgs; [ 22 + setuptools-scm 23 + ]; 24 + 25 + propagatedBuildInputs = with python3.pkgs; [ 26 + imageio 27 + imageio-ffmpeg 28 + numpy 29 + onnx 30 + onnxruntime # Nixpkgs onnxruntime is missing CUDA support 31 + opencv4 32 + scikit-image 33 + tqdm 34 + ]; 35 + 36 + # Native onnxruntime lib used by Python module onnxruntime can't find its other libs without this 37 + makeWrapperArgs = [ 38 + ''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"'' 39 + ]; 40 + 41 + patchPhase = '' 42 + substituteInPlace pyproject.toml requirements.txt --replace "opencv-python" "opencv" 43 + ''; 44 + 45 + # Let setuptools know deface version 46 + SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; 47 + 48 + pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ]; 49 + 50 + meta = with lib; { 51 + description = "Video anonymization by face detection"; 52 + homepage = "https://github.com/ORB-HD/deface"; 53 + license = licenses.mit; 54 + maintainers = with maintainers; [ lurkki ]; 55 + }; 56 + }
+2
pkgs/top-level/all-packages.nix
··· 41866 41866 41867 41867 ov = callPackage ../tools/text/ov { }; 41868 41868 41869 + deface = callPackage ../applications/video/deface { }; 41870 + 41869 41871 tubekit = callPackage ../applications/networking/cluster/tubekit/wrapper.nix { }; 41870 41872 41871 41873 tubekit-unwrapped = callPackage ../applications/networking/cluster/tubekit { };