diff --git a/default.nix b/default.nix index 26d6206..f738023 100644 --- a/default.nix +++ b/default.nix @@ -52,6 +52,7 @@ in adjust = callPythonPackage ./plugins/adjust { }; debandshit = callPythonPackage ./plugins/debandshit { }; edi_rpow2 = callPythonPackage ./plugins/edi_rpow2 { }; + finedehalo = callPythonPackage ./plugins/finedehalo { }; mt_lutspa = callPythonPackage ./plugins/mt_lutspa { }; nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { }; nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { }; diff --git a/plugins/finedehalo/default.nix b/plugins/finedehalo/default.nix new file mode 100644 index 0000000..a0bfedd --- /dev/null +++ b/plugins/finedehalo/default.nix @@ -0,0 +1,41 @@ +{ lib, buildPythonPackage, fetchgit, vapoursynthPlugins, python3, 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/${python3.sitePackages}/finedehalo.py + runHook postInstall + ''; + + checkInputs = [ vapoursynth ]; + checkPhase = '' + runHook preCheck + PYTHONPATH=$out/${python3.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; + }; +}