From 4efbbdd2e704d840746e234f8234c6ede2ca528d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 18:49:36 +0100 Subject: [PATCH] vapoursynthPlugins.nnedi3_rpow2: init at 1.1.0 --- default.nix | 1 + plugins/nnedi3_rpow2/default.nix | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 plugins/nnedi3_rpow2/default.nix diff --git a/default.nix b/default.nix index 92a43da..f97512b 100644 --- a/default.nix +++ b/default.nix @@ -47,6 +47,7 @@ in adjust = callPythonPackage ./plugins/adjust { }; edi_rpow2 = callPythonPackage ./plugins/edi_rpow2 { }; + nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { }; mvsfunc = callPythonPackage ./plugins/mvsfunc { }; }; diff --git a/plugins/nnedi3_rpow2/default.nix b/plugins/nnedi3_rpow2/default.nix new file mode 100644 index 0000000..99a1b02 --- /dev/null +++ b/plugins/nnedi3_rpow2/default.nix @@ -0,0 +1,39 @@ +{ lib, buildPythonPackage, fetchgit, vapoursynthPlugins, python3, vapoursynth }: + +buildPythonPackage rec { + pname = "nnedi3_rpow2"; + version = "1.1.0"; + + src = fetchgit { + url = "https://gist.github.com/4re/342624c9e1a144a696c6"; + rev = "68ec4bdff1e51a3832b163198ed7ea00e1c1ab46"; + sha256 = "0i112kqkrlinnkkx4rjfmzpzax07mn8gxh2bnf13ccjpbpxigrnn"; + }; + + propagatedBuildInputs = with vapoursynthPlugins; [ + fmtconv + nnedi3 + nnedi3cl + znedi3 + ]; + + format = "other"; + + installPhase = '' + install -D nnedi3_rpow2.py $out/${python3.sitePackages}/nnedi3_rpow2.py + ''; + + checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ]; + checkPhase = '' + PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH + ''; + pythonImportsCheck = [ "nnedi3_rpow2" ]; + + meta = with lib; { + description = "A vapoursynth plugin for enlarging images by powers of 2"; + homepage = "https://gist.github.com/4re/342624c9e1a144a696c6"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}