diff --git a/default.nix b/default.nix index 18bbf09..8e06080 100644 --- a/default.nix +++ b/default.nix @@ -72,6 +72,7 @@ in adjust = callPythonPackage ./plugins/adjust { }; astdr = callPythonPackage ./plugins/astdr { }; debandshit = callPythonPackage ./plugins/debandshit { }; + dfmderainbow = callPythonPackage ./plugins/dfmderainbow { }; edi_rpow2 = callPythonPackage ./plugins/edi_rpow2 { }; finedehalo = callPythonPackage ./plugins/finedehalo { }; mt_lutspa = callPythonPackage ./plugins/mt_lutspa { }; diff --git a/plugins/dfmderainbow/default.nix b/plugins/dfmderainbow/default.nix new file mode 100644 index 0000000..019d4eb --- /dev/null +++ b/plugins/dfmderainbow/default.nix @@ -0,0 +1,57 @@ +{ lib +, fetchFromGitHub +, buildPythonPackage +, python +, vapoursynthPlugins +, vapoursynth +}: + +let + plugins_native = with vapoursynthPlugins; [ + minideen + msmoosh + mvtools + temporalmedian + temporalsoften2 + ]; +in +buildPythonPackage rec { + pname = "dfmderainbow"; + version = "unstable-10-17-2022"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = "vapoursynth-dfmderainbow"; + rev = "44dc6545bced8fc25672bdda717943a02c6b5d71"; + sha256 = "sha256-0+DnuQKLaO4AHSK7o0LRpYI1oaYVe8qVgfq1K555afI="; + }; + + format = "other"; + + propagatedBuildInputs = plugins_native; + + installPhase = '' + runHook preInstall + + install -D dfmderainbow.py $out/${python.sitePackages}/dfmderainbow.py + + runHook postInstall + ''; + + checkInputs = [ (vapoursynth.withPlugins plugins_native ) ]; + checkPhase = '' + PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH + ''; + pythonImportsCheck = [ "dfmderainbow" ]; + + meta = with lib; { + description = "A VapourSynth derainbow function"; + longDescription = '' + This is a port of the Avisynth function of the same name, version 20140223. + ''; + homepage = "https://github.com/dubhater/vapoursynth-astdr"; + license = licenses.unfree; # no license + maintainers = with maintainers; [ aidalgol ]; + platforms = platforms.all; + }; +}