From a64ad77c18496a011bd81a3c50b75ab1bc66facc Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 18:40:44 +0100 Subject: [PATCH] vapoursynthPlugins.mvsfunc: init at r8 --- default.nix | 2 ++ plugins/mvsfunc/default.nix | 38 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 plugins/mvsfunc/default.nix diff --git a/default.nix b/default.nix index b3b50cc..06b797e 100644 --- a/default.nix +++ b/default.nix @@ -44,6 +44,8 @@ in ttempsmooth = super.callPackage ./plugins/ttempsmooth { }; wwxd = super.callPackage ./plugins/wwxd { }; znedi3 = super.callPackage ./plugins/znedi3 { }; + + mvsfunc = callPythonPackage ./plugins/mvsfunc { }; }; getnative = callPythonPackage ./tools/getnative { }; diff --git a/plugins/mvsfunc/default.nix b/plugins/mvsfunc/default.nix new file mode 100644 index 0000000..e197812 --- /dev/null +++ b/plugins/mvsfunc/default.nix @@ -0,0 +1,38 @@ +{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python3, vapoursynth }: + +buildPythonPackage rec { + pname = "mvsfunc"; + version = "r8"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = pname; + rev = version; + sha256 = "0y5whczp3skbfbv9ajizddpg2k8hxiiy339gkqhiqby7zlbnvdw2"; + }; + + propagatedBuildInputs = with vapoursynthPlugins; [ + bm3d + fmtconv + ]; + + format = "other"; + + installPhase = '' + install -D mvsfunc.py $out/${python3.sitePackages}/mvsfunc.py + ''; + + checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ]; + checkPhase = '' + PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH + ''; + pythonImportsCheck = [ "mvsfunc" ]; + + meta = with lib; { + description = "mawen1250’s VapourSynth functions"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/mvsfunc"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}