8 python3.pkgs.buildPythonApplication rec {
13 disabled = python3.pythonOlder "3.8";
15 src = fetchFromGitHub {
18 rev = "refs/tags/v${version}";
19 hash = "sha256-/mXWeL6OSgW4BMXtAZD/3UxQUGt7UE5ZvH8CXNCueJo=";
22 build-system = with python3.pkgs; [
26 dependencies = with python3.pkgs; [
31 onnxruntime # Nixpkgs onnxruntime is missing CUDA support
37 # Native onnxruntime lib used by Python module onnxruntime can't find its other libs without this
39 ''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
43 substituteInPlace pyproject.toml \
44 --replace-fail "opencv-python" "opencv"
47 pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
50 description = "Video anonymization by face detection";
51 homepage = "https://github.com/ORB-HD/deface";
52 changelog = "https://github.com/ORB-HD/deface/releases/tag/v${version}";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ lurkki ];
55 mainProgram = "deface";
56 # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
57 broken = stdenv.hostPlatform.system == "aarch64-linux";