astdr: init at 4

This commit is contained in:
Aidan Gauland 2022-09-25 17:39:08 +13:00 committed by Tadeo Kondrak
parent 3c959c4701
commit f13b913fdc
2 changed files with 65 additions and 0 deletions

View file

@ -68,6 +68,7 @@ in
acsuite = callPythonPackage ./plugins/acsuite { };
adjust = callPythonPackage ./plugins/adjust { };
astdr = callPythonPackage ./plugins/astdr { };
debandshit = callPythonPackage ./plugins/debandshit { };
edi_rpow2 = callPythonPackage ./plugins/edi_rpow2 { };
finedehalo = callPythonPackage ./plugins/finedehalo { };

64
plugins/astdr/default.nix Normal file
View file

@ -0,0 +1,64 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, python
, vapoursynthPlugins
, vapoursynth
}:
let
plugins_native = with vapoursynthPlugins; [
awarpsharp2
fft3dfilter
hqdn3d
mvtools
ctmf
fluxsmooth
decross
temporalsoften2
motionmask
];
plugins_python = with vapoursynthPlugins; [
adjust
];
in
buildPythonPackage rec {
pname = "astdr";
version = "4";
src = fetchFromGitHub {
owner = "dubhater";
repo = "vapoursynth-astdr";
rev = "v${version}";
sha256 = "sha256-We3vhTZCGYZPMOAfWGif3yAxBUAPUk9zm9JQdlWhn8E=";
};
format = "other";
propagatedBuildInputs = plugins_native ++ plugins_python;
installPhase = ''
runHook preInstall
install -D ASTDR.py $out/${python.sitePackages}/ASTDR.py
runHook postInstall
'';
checkInputs = [ (vapoursynth.withPlugins plugins_native ) ];
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
pythonImportsCheck = [ "ASTDR" ];
meta = with lib; {
description = "A VapourSynth derainbow function";
longDescription = ''
This is a port of the Avisynth function of the same name, version 1.74.
'';
homepage = "https://github.com/dubhater/vapoursynth-astdr";
license = licenses.unfree; # no license
maintainers = with maintainers; [ aidalgol ];
platforms = platforms.all;
};
}