vapoursynthPlugins.lvsfunc: init at unstable-2021-05-15

This commit is contained in:
Simon Bruder 2021-05-16 12:25:37 +02:00 committed by Tadeo Kondrak
parent a45c93c1d8
commit 0040b158a7
2 changed files with 66 additions and 0 deletions

View file

@ -67,6 +67,7 @@ in
fvsfunc = callPythonPackage ./plugins/fvsfunc { };
havsfunc = callPythonPackage ./plugins/havsfunc { };
kagefunc = callPythonPackage ./plugins/kagefunc { };
lvsfunc = callPythonPackage ./plugins/lvsfunc { };
muvsfunc = callPythonPackage ./plugins/muvsfunc { };
mvsfunc = callPythonPackage ./plugins/mvsfunc { };
vardefunc = callPythonPackage ./plugins/vardefunc { };

View file

@ -0,0 +1,65 @@
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, rich, toolz, vapoursynth }:
let
propagatedBinaryPlugins = with vapoursynthPlugins; [
adaptivegrain
combmask
continuityfixer
d2vsource
descale
eedi3m
fmtconv
knlmeanscl
nnedi3
readmpls
retinex
#rgsf
tcanny
znedi3
];
in
buildPythonPackage rec {
pname = "lvsfunc";
version = "unstable-2021-05-15";
src = fetchFromGitHub {
owner = "Irrational-Encoding-Wizardry";
repo = pname;
rev = "76bddb75bc014a47064958beecb13143b8206fa6";
sha256 = "0gvpz9d0lbjvpk8spkfxbmi4s8pqqyjqi8jjvfhfdf3m906v1wh1";
};
postPatch = ''
# This does not depend on vapoursynth (since this is used from within
# vapoursynth).
substituteInPlace requirements.txt \
--replace "VapourSynth>=51" "" \
# TODO: remove when python 3.9 is default in nixpkgs
substituteInPlace setup.py \
--replace "python_requires='>=3.9'" "python_requires='>=3.8'" \
'';
propagatedBuildInputs = [
rich
toolz
] ++ (with vapoursynthPlugins; [
debandshit
edi_rpow2
havsfunc
kagefunc
mvsfunc
vsTAAmbk
vsutil
]);
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
pythonImportsCheck = [ "lvsfunc" ];
meta = with lib; {
description = "A collection of LightArrowsEXEs VapourSynth functions and wrappers";
homepage = "https://lvsfunc.readthedocs.io";
license = licenses.mit; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}