vapoursynthPlugins.fvsfunc: init at unstable-2020-10-12

This commit is contained in:
Simon Bruder 2021-01-23 19:55:02 +01:00 committed by Tadeo Kondrak
parent fd802b877d
commit dae0d8550e
2 changed files with 49 additions and 0 deletions

View file

@ -53,6 +53,7 @@ in
vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { };
vsutil = callPythonPackage ./plugins/vsutil { };
fvsfunc = callPythonPackage ./plugins/fvsfunc { };
havsfunc = callPythonPackage ./plugins/havsfunc { };
muvsfunc = callPythonPackage ./plugins/muvsfunc { };
mvsfunc = callPythonPackage ./plugins/mvsfunc { };

View file

@ -0,0 +1,48 @@
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, python3, vapoursynth }:
let
propagatedBinaryPlugins = with vapoursynthPlugins; [
bilateral
descale
dfttest
fmtconv
nnedi3
];
in
buildPythonPackage rec {
pname = "fvsfunc";
version = "unstable-2020-10-12";
src = fetchFromGitHub {
owner = "Irrational-Encoding-Wizardry";
repo = pname;
rev = "96211df1eb46cda49ffbf1c930d627fe3a5d5d5a";
sha256 = "0zyb96izws9lb53wlxx9p1ing5z9xy9gj98pblx4p5myim39xywq";
};
propagatedBuildInputs = (with vapoursynthPlugins; [
havsfunc
muvsfunc
mvsfunc
nnedi3_rpow2
]) ++ propagatedBinaryPlugins;
format = "other";
installPhase = ''
install -D fvsfunc.py $out/${python3.sitePackages}/fvsfunc.py
'';
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
checkPhase = ''
PYTHONPATH=$out/${python3.sitePackages}:$PYTHONPATH
'';
pythonImportsCheck = [ "fvsfunc" ];
meta = with lib; {
description = "A small collection of VapourSynth functions";
homepage = "https://github.com/Irrational-Encoding-Wizardry/fvsfunc";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}