mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-23 01:12:25 +01:00
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
||
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
|
||
];
|
||
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";
|
||
|
||
propagatedBuildInputs = plugins_native ++ plugins_python;
|
||
|
||
installPhase = ''
|
||
runHook preInstall
|
||
|
||
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
|
||
|
||
runHook postInstall
|
||
'';
|
||
|
||
checkInputs = [ (vapoursynth.withPlugins plugins_native ) ];
|
||
checkPhase = ''
|
||
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
||
'';
|
||
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;
|
||
};
|
||
}
|