From dae0d8550e1736142c02af6d8aae77708eb59610 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 19:55:02 +0100 Subject: [PATCH] vapoursynthPlugins.fvsfunc: init at unstable-2020-10-12 --- default.nix | 1 + plugins/fvsfunc/default.nix | 48 +++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 plugins/fvsfunc/default.nix diff --git a/default.nix b/default.nix index b932c13..7b371d9 100644 --- a/default.nix +++ b/default.nix @@ -53,6 +53,7 @@ in vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { }; vsutil = callPythonPackage ./plugins/vsutil { }; + fvsfunc = callPythonPackage ./plugins/fvsfunc { }; havsfunc = callPythonPackage ./plugins/havsfunc { }; muvsfunc = callPythonPackage ./plugins/muvsfunc { }; mvsfunc = callPythonPackage ./plugins/mvsfunc { }; diff --git a/plugins/fvsfunc/default.nix b/plugins/fvsfunc/default.nix new file mode 100644 index 0000000..d971ed7 --- /dev/null +++ b/plugins/fvsfunc/default.nix @@ -0,0 +1,48 @@ +{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, python3, vapoursynth }: +let + propagatedBinaryPlugins = with vapoursynthPlugins; [ + bilateral + descale + dfttest + fmtconv + nnedi3 + ]; +in +buildPythonPackage rec { + pname = "fvsfunc"; + version = "unstable-2020-10-12"; + + src = fetchFromGitHub { + owner = "Irrational-Encoding-Wizardry"; + repo = pname; + rev = "96211df1eb46cda49ffbf1c930d627fe3a5d5d5a"; + sha256 = "0zyb96izws9lb53wlxx9p1ing5z9xy9gj98pblx4p5myim39xywq"; + }; + + propagatedBuildInputs = (with vapoursynthPlugins; [ + havsfunc + muvsfunc + mvsfunc + nnedi3_rpow2 + ]) ++ propagatedBinaryPlugins; + + format = "other"; + + installPhase = '' + install -D fvsfunc.py $out/${python3.sitePackages}/fvsfunc.py + ''; + + checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ]; + checkPhase = '' + PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH + ''; + pythonImportsCheck = [ "fvsfunc" ]; + + meta = with lib; { + description = "A small collection of VapourSynth functions"; + homepage = "https://github.com/Irrational-Encoding-Wizardry/fvsfunc"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}