2022-05-26 22:22:43 +02:00
|
|
|
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, python, vapoursynth }:
|
2021-01-23 19:55:02 +01:00
|
|
|
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 = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
install -D fvsfunc.py $out/${python.sitePackages}/fvsfunc.py
|
2021-01-23 19:55:02 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 19:55:02 +01:00
|
|
|
'';
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|