2022-05-26 22:22:43 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
2021-01-23 19:50:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vsTAAmbk";
|
2023-11-21 00:28:42 +01:00
|
|
|
version = "0.8.2";
|
2021-01-23 19:50:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
|
|
repo = pname;
|
2021-10-12 21:28:13 +02:00
|
|
|
rev = "v${version}";
|
2023-11-21 00:28:42 +01:00
|
|
|
sha256 = "sha256-fOMx4rEfqXAVds1rnHyP+srS8zSY9rMgRVdo4zZ0GhU=";
|
2021-01-23 19:50:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-10-15 20:09:57 +02:00
|
|
|
./0001-Skip-OpenCL-test.patch
|
2021-01-23 19:50:25 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
|
|
|
awarpsharp2
|
|
|
|
cas
|
|
|
|
eedi2
|
|
|
|
eedi3m
|
|
|
|
fmtconv
|
|
|
|
havsfunc
|
|
|
|
msmoosh
|
|
|
|
mvsfunc
|
|
|
|
mvtools
|
|
|
|
nnedi3
|
|
|
|
nnedi3cl
|
2021-10-15 20:09:57 +02:00
|
|
|
removegrain
|
2021-01-23 19:50:25 +01:00
|
|
|
sangnom
|
|
|
|
tcanny
|
|
|
|
znedi3
|
|
|
|
];
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
install -D vsTAAmbk.py $out/${python.sitePackages}/vsTAAmbk.py
|
2021-01-23 19:50:25 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
|
|
|
checkPhase = ''
|
2022-05-26 22:22:43 +02:00
|
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
2021-01-23 19:50:25 +01:00
|
|
|
python3 test/vsTAAmbkTestCase.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An Anti-aliasing script for VapourSynth ported from Avisynth";
|
|
|
|
homepage = "https://github.com/HomeOfVapourSynthEvolution/vsTAAmbk";
|
|
|
|
license = licenses.unfree; # no license
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|