vapoursynthPlugins.rekt: init at r39

This commit is contained in:
Simon Bruder 2021-05-16 10:57:13 +02:00 committed by Tadeo Kondrak
parent 29e467be9d
commit 327189dfe3
2 changed files with 42 additions and 0 deletions

View file

@ -55,6 +55,7 @@ in
mt_lutspa = callPythonPackage ./plugins/mt_lutspa { }; mt_lutspa = callPythonPackage ./plugins/mt_lutspa { };
nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { }; nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { };
nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { }; nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { };
rekt = callPythonPackage ./plugins/rekt { };
vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { }; vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { };
vsutil = callPythonPackage ./plugins/vsutil { }; vsutil = callPythonPackage ./plugins/vsutil { };

41
plugins/rekt/default.nix Normal file
View file

@ -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
# dont work) even though this package doesnt 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;
};
}