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 ]}"''
42 pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];
45 description = "Video anonymization by face detection";
46 homepage = "https://github.com/ORB-HD/deface";
47 changelog = "https://github.com/ORB-HD/deface/releases/tag/v${version}";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ lurkki ];
50 mainProgram = "deface";
51 # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
52 broken = stdenv.hostPlatform.system == "aarch64-linux";