2022-05-26 22:22:43 +02:00
|
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
2022-09-20 07:53:28 +02:00
|
|
|
|
let
|
|
|
|
|
plugins_native = with vapoursynthPlugins; [
|
2021-01-23 19:49:34 +01:00
|
|
|
|
addgrain
|
|
|
|
|
adjust
|
|
|
|
|
bm3d
|
|
|
|
|
cas
|
|
|
|
|
ctmf
|
|
|
|
|
dctfilter
|
|
|
|
|
deblock
|
|
|
|
|
dfttest
|
|
|
|
|
eedi2
|
|
|
|
|
eedi3m
|
|
|
|
|
fft3dfilter
|
|
|
|
|
fluxsmooth
|
|
|
|
|
fmtconv
|
|
|
|
|
hqdn3d
|
|
|
|
|
knlmeanscl
|
2022-05-26 14:21:04 +02:00
|
|
|
|
miscfilters-obsolete
|
2021-01-23 19:49:34 +01:00
|
|
|
|
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=";
|
|
|
|
|
};
|
2021-01-23 19:49:34 +01:00
|
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
2022-09-20 07:53:28 +02:00
|
|
|
|
propagatedBuildInputs = plugins_native ++ plugins_python;
|
|
|
|
|
|
2021-01-23 19:49:34 +01:00
|
|
|
|
installPhase = ''
|
2022-09-20 07:53:28 +02:00
|
|
|
|
runHook preInstall
|
|
|
|
|
|
2022-05-26 22:22:43 +02:00
|
|
|
|
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
|
2022-09-20 07:53:28 +02:00
|
|
|
|
|
|
|
|
|
runHook postInstall
|
2021-01-23 19:49:34 +01:00
|
|
|
|
'';
|
|
|
|
|
|
2022-09-20 07:53:28 +02:00
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins plugins_native ) ];
|
2021-01-23 19:49:34 +01:00
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 19:49:34 +01:00
|
|
|
|
'';
|
|
|
|
|
pythonImportsCheck = [ "havsfunc" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Holy’s ported AviSynth functions for VapourSynth";
|
|
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/havsfunc";
|
|
|
|
|
license = licenses.unfree; # no license
|
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
|
platforms = platforms.all;
|
|
|
|
|
};
|
|
|
|
|
}
|