2022-05-26 22:22:43 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, python, vapoursynth }:
|
2021-01-23 18:44:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vapoursynth-adjust";
|
|
|
|
version = "1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dubhater";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0wd6sh788ljb4vj6fd5zv2cx7nl6x1k3lnz44n7p3ac5vfskjz8a";
|
|
|
|
};
|
|
|
|
|
2022-05-26 14:06:14 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/dubhater/vapoursynth-adjust/commit/a3af7cb57cb37747b0667346375536e65b1fed17.patch";
|
|
|
|
sha256 = "sha256-0N7oSsYj0/F0PwswI+1hgM7Gu1KKWdlJOuYf24wlEUw=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-23 18:44:40 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
install -D adjust.py $out/${python.sitePackages}/adjust.py
|
2021-01-23 18:44:40 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ vapoursynth ];
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 18:44:40 +01:00
|
|
|
'';
|
|
|
|
pythonImportsCheck = [ "adjust" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A VapourSynth port of the Avisynth filter Tweak";
|
|
|
|
homepage = "https://github.com/dubhater/vapoursynth-adjust";
|
|
|
|
license = licenses.wtfpl;
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|