From 327189dfe33b10a227cb7941002d1866def5d4e1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 16 May 2021 10:57:13 +0200 Subject: [PATCH] vapoursynthPlugins.rekt: init at r39 --- default.nix | 1 + plugins/rekt/default.nix | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 plugins/rekt/default.nix diff --git a/default.nix b/default.nix index 43f4a3d..e39793f 100644 --- a/default.nix +++ b/default.nix @@ -55,6 +55,7 @@ in mt_lutspa = callPythonPackage ./plugins/mt_lutspa { }; nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { }; nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { }; + rekt = callPythonPackage ./plugins/rekt { }; vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { }; vsutil = callPythonPackage ./plugins/vsutil { }; diff --git a/plugins/rekt/default.nix b/plugins/rekt/default.nix new file mode 100644 index 0000000..9ba985a --- /dev/null +++ b/plugins/rekt/default.nix @@ -0,0 +1,41 @@ +{ lib, buildPythonPackage, fetchFromGitLab, vapoursynthPlugins, vapoursynth }: + +buildPythonPackage rec { + pname = "rekt"; + version = "r39"; + + src = fetchFromGitLab { + owner = "Ututu"; + repo = pname; + rev = "153863e07779219c48cf1223bfdba86c47bc43be"; + sha256 = "1h83dqwn71pfqxx8hppbqc7i9mh0a2pbpydsm8jvf538z9nr2sl9"; + }; + + # This does not depend on vapoursynth (since this is used from within + # vapoursynth). + postPatch = '' + substituteInPlace setup.py \ + --replace "install_requires=['vapoursynth', " "install_requires=[" + ''; + + propagatedBuildInputs = with vapoursynthPlugins; [ + vsutil + ]; + + checkInputs = [ vapoursynth ]; + checkPhase = '' + runHook preCheck + # This overrides the default setuptools checkPhase that detects tests (that + # don’t work) even though this package doesn’t have tests. + runHook postCheck + ''; + pythonImportsCheck = [ "rekt" ]; + + meta = with lib; { + description = "VapourSynth wrapper for Cropping and Stacking clips"; + homepage = "https://gitlab.com/Ututu/rekt"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}