vs-overlay/plugins/havsfunc/default.nix
Simon Bruder eeceb7e2e4 vapoursynthPlugins: allow override of python version
When overriding the python3 dependency of vapoursynth, it should get
propagated to all plugins. Currently, however, this causes
incompatibilities, because `vapoursynth.python3.callPackage` only sets
the `python` attribute, not `python3`. This currently causes build
failures due to different site-packages paths.
2022-05-27 22:27:20 +02:00

61 lines
1.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
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
miscfilters-obsolete
mvsfunc
mvtools
nnedi3
nnedi3cl
sangnom
ttempsmooth
znedi3
];
format = "other";
installPhase = ''
install -D havsfunc.py $out/${python.sitePackages}/havsfunc.py
'';
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
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;
};
}