vs-overlay/plugins/havsfunc/default.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
2022-09-20 07:53:28 +02:00
let
plugins_native = with vapoursynthPlugins; [
addgrain
adjust
bm3d
cas
ctmf
dctfilter
deblock
dfttest
eedi2
eedi3m
fft3dfilter
fluxsmooth
fmtconv
hqdn3d
knlmeanscl
miscfilters-obsolete
mvsfunc
mvtools
nnedi3
nnedi3cl
sangnom
ttempsmooth
znedi3
];
2022-09-20 07:53:28 +02:00
plugins_python = with vapoursynthPlugins; [
vsutil
];
in
buildPythonPackage rec {
pname = "havsfunc";
version = "unstable-2022-09-08";
src = fetchFromGitHub {
owner = "HomeOfVapourSynthEvolution";
repo = pname;
rev = "2c6d3fedc3c4c3f3ed2460f7014d1227fe2fe207";
sha256 = "sha256-YJl/X9niJelgovwUK6S50lvQUe/yYAbXEHWBbMqfXz0=";
};
format = "other";
2022-09-20 07:53:28 +02:00
propagatedBuildInputs = plugins_native ++ plugins_python;
installPhase = ''
2022-09-20 07:53:28 +02:00
runHook preInstall
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
2022-09-20 07:53:28 +02:00
runHook postInstall
'';
2022-09-20 07:53:28 +02:00
checkInputs = [ (vapoursynth.withPlugins plugins_native ) ];
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
pythonImportsCheck = [ "havsfunc" ];
meta = with lib; {
description = "Holys ported AviSynth functions for VapourSynth";
homepage = "https://github.com/HomeOfVapourSynthEvolution/havsfunc";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}