vs-overlay/plugins/vsTAAmbk/default.nix

56 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
buildPythonPackage rec {
pname = "vsTAAmbk";
2023-11-21 00:28:42 +01:00
version = "0.8.2";
src = fetchFromGitHub {
owner = "HomeOfVapourSynthEvolution";
repo = pname;
rev = "v${version}";
2023-11-21 00:28:42 +01:00
sha256 = "sha256-fOMx4rEfqXAVds1rnHyP+srS8zSY9rMgRVdo4zZ0GhU=";
};
patches = [
./0001-Skip-OpenCL-test.patch
];
propagatedBuildInputs = with vapoursynthPlugins; [
awarpsharp2
cas
eedi2
eedi3m
fmtconv
havsfunc
msmoosh
mvsfunc
mvtools
nnedi3
nnedi3cl
removegrain
sangnom
tcanny
znedi3
];
format = "other";
installPhase = ''
install -D vsTAAmbk.py $out/${python.sitePackages}/vsTAAmbk.py
'';
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
checkPhase = ''
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
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;
};
}