vs-overlay/plugins/havsfunc/default.nix

68 lines
1.5 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{ 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 = "Holys ported AviSynth functions for VapourSynth";
homepage = "https://github.com/HomeOfVapourSynthEvolution/havsfunc";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}