From 0c549715238c8938e7922ae5ecbab532ea85fdad Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 18:53:20 +0100 Subject: [PATCH] vapoursynthPlugins.mt_lutspa: init at unstable-2015-10-14 --- default.nix | 1 + plugins/mt_lutspa/default.nix | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 plugins/mt_lutspa/default.nix diff --git a/default.nix b/default.nix index 5db80b2..dec4a1f 100644 --- a/default.nix +++ b/default.nix @@ -47,6 +47,7 @@ in adjust = callPythonPackage ./plugins/adjust { }; edi_rpow2 = callPythonPackage ./plugins/edi_rpow2 { }; + mt_lutspa = callPythonPackage ./plugins/mt_lutspa { }; nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { }; nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { }; diff --git a/plugins/mt_lutspa/default.nix b/plugins/mt_lutspa/default.nix new file mode 100644 index 0000000..03f2171 --- /dev/null +++ b/plugins/mt_lutspa/default.nix @@ -0,0 +1,36 @@ +{ lib, buildPythonPackage, fetchgit, numpy, vapoursynthPlugins, python3, vapoursynth }: + +buildPythonPackage rec { + pname = "mt_lutspa"; + version = "unstable-2015-10-14"; + + src = fetchgit { + url = "https://gist.github.com/tp7/1e39044e1b660ef0a02c"; + rev = "4ab492db4431bd27466b42d96bc5878db822499e"; + sha256 = "0szws6fcrcgdn31szhrmglpl2kglrglx1bgxd0bjl3r51bxiry12"; + }; + + propagatedBuildInputs = [ + numpy + ]; + + format = "other"; + + installPhase = '' + install -D mt_lutspa.py $out/${python3.sitePackages}/mt_lutspa.py + ''; + + checkInputs = [ vapoursynth ]; + checkPhase = '' + PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH + ''; + pythonImportsCheck = [ "mt_lutspa" ]; + + meta = with lib; { + description = "A vapoursynth plugin to computes the value of a pixel according to its spatial position"; + homepage = "https://gist.github.com/tp7/1e39044e1b660ef0a02c"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}