From 7a5260ab49d45695d8c641a4c1453abe287ddb5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Mon, 2 Mar 2020 22:58:24 +0100 Subject: [PATCH] init av1an --- default.nix | 2 ++ pkgs/av1an/default.nix | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/av1an/default.nix diff --git a/default.nix b/default.nix index bad3096..1d92882 100644 --- a/default.nix +++ b/default.nix @@ -20,6 +20,8 @@ rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { }; + av1an = pkgs.callPackage ./pkgs/av1an { }; + janus = pkgs.libsForQt5.callPackage ./pkgs/JanusVR/client { }; radical-native = pkgs.callPackage ./pkgs/radical-native { }; diff --git a/pkgs/av1an/default.nix b/pkgs/av1an/default.nix new file mode 100644 index 0000000..cb527b7 --- /dev/null +++ b/pkgs/av1an/default.nix @@ -0,0 +1,48 @@ +{lib, fetchFromGitHub, python3, python3Packages, ffmpeg-full, libaom }: + +let + scenedetect = python3Packages.buildPythonPackage rec { + pname = "scenedetect"; + version = "0.5.1.1"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "097y3v7rjq75rpzysxksqjhbk8m3g7wn46spc380zjhy3if6nlhn"; + }; + }; + + opencv-python = python3Packages.buildPythonPackage rec { + pname = "opencv-python"; + version = "4.2.0.32"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "19xm24vgfqis0bqrg5fc5jxf5yr1md5y49kb7q3792gihykl6yz2"; + }; + }; + + pythonEnv = python3.withPackages (pythonPackages: [ + pythonPackages.numpy + scenedetect + opencv-python + pythonPackages.tqdm + pythonPackages.psutil + ]); + +in + python3Packages.buildPythonApplication rec { + pname = "av1an"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "master-of-zen"; + repo = "AV1an"; + rev = "${version}"; + sha256 = "19xm24vgfqis0bqrg5fc5jxf5yr1md5y49kb7q3792gihykl6yz3"; + }; + + buildInputs = [ pythonEnv ffmpeg-full libaom ]; + + meta.broken = true; + + }