2022-05-26 22:22:43 +02:00
|
|
|
{ lib, buildPythonPackage, fetchgit, vapoursynthPlugins, python, vapoursynth }:
|
2021-01-23 18:46:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "edi_rpow2";
|
|
|
|
version = "unstable-2018-05-21";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gist.github.com/YamashitaRen/020c497524e794779d9c";
|
|
|
|
rev = "2a20385e50804f8b24f2a2479e2c0f3c335d4853";
|
|
|
|
sha256 = "0vaj4v74khrsmyvkpimfkbbyk4bwn065j57fcvzx37fki8a8sw6i";
|
|
|
|
};
|
|
|
|
|
2021-10-17 11:43:41 +02:00
|
|
|
patches = [
|
|
|
|
./0001-Use-vs.core-instead-of-vs.get_core.patch
|
|
|
|
];
|
|
|
|
|
2021-01-23 18:46:59 +01:00
|
|
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
|
|
|
eedi2
|
|
|
|
eedi3m
|
|
|
|
fmtconv
|
|
|
|
nnedi3
|
|
|
|
nnedi3cl
|
|
|
|
znedi3
|
|
|
|
];
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
install -D edi_rpow2.py $out/${python.sitePackages}/edi_rpow2.py
|
2021-01-23 18:46:59 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 18:46:59 +01:00
|
|
|
'';
|
|
|
|
pythonImportsCheck = [ "edi_rpow2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A vapoursynth plugin for enlarging images by powers of 2";
|
|
|
|
homepage = "https://gist.github.com/YamashitaRen/020c497524e794779d9c";
|
|
|
|
license = licenses.unfree; # no license
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|