vs-overlay/plugins/finedehalo/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

42 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchgit, vapoursynthPlugins, python, vapoursynth }:
buildPythonPackage rec {
pname = "finedehalo";
version = "unstable-2016-07-08";
src = fetchgit {
url = "https://gist.github.com/bcd427ec0fa8fdf7c45433917521bac4.git";
rev = "879cd79512d8f43083bcc7832890649aaf4d49fe";
sha256 = "0iq8hjwab9lmyaa49k03pi64fw34hdv6xr33s9kyjn6f9j2dn8b5";
};
propagatedBuildInputs = with vapoursynthPlugins; [
havsfunc
mvsfunc
];
format = "other";
installPhase = ''
runHook preInstall
install -D finedehalo.py $out/${python.sitePackages}/finedehalo.py
runHook postInstall
'';
checkInputs = [ vapoursynth ];
checkPhase = ''
runHook preCheck
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
runHook postCheck
'';
pythonImportsCheck = [ "finedehalo" ];
meta = with lib; {
description = "FineDehalo ported to VapourSynth";
homepage = "https://forum.doom9.org/showthread.php?t=173672";
license = licenses.unfree; # no license
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}