2022-05-26 22:22:43 +02:00
|
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
2021-01-23 19:49:34 +01:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "havsfunc";
|
|
|
|
|
version = "r33";
|
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = version;
|
|
|
|
|
sha256 = "14132gcy0zw348c40y2i8c7n3i1ygcnv9xrf83jp6m3b9v557z7p";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
|
|
|
|
addgrain
|
|
|
|
|
adjust
|
|
|
|
|
bm3d
|
|
|
|
|
cas
|
|
|
|
|
ctmf
|
|
|
|
|
dctfilter
|
|
|
|
|
deblock
|
|
|
|
|
dfttest
|
|
|
|
|
eedi2
|
|
|
|
|
eedi3m
|
|
|
|
|
fft3dfilter
|
|
|
|
|
fluxsmooth
|
|
|
|
|
fmtconv
|
|
|
|
|
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
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
|
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
|
2021-01-23 19:49:34 +01:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
|
|
|
|
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;
|
|
|
|
|
};
|
|
|
|
|
}
|