mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-23 01:12:25 +01:00
vapoursynthPlugins.vsTAAmbk: init at unstable-2020-08-13
This commit is contained in:
parent
9816df0e83
commit
bdab96642c
|
@ -50,6 +50,7 @@ in
|
||||||
mt_lutspa = callPythonPackage ./plugins/mt_lutspa { };
|
mt_lutspa = callPythonPackage ./plugins/mt_lutspa { };
|
||||||
nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { };
|
nnedi3_resample = callPythonPackage ./plugins/nnedi3_resample { };
|
||||||
nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { };
|
nnedi3_rpow2 = callPythonPackage ./plugins/nnedi3_rpow2 { };
|
||||||
|
vsTAAmbk = callPythonPackage ./plugins/vsTAAmbk { };
|
||||||
vsutil = callPythonPackage ./plugins/vsutil { };
|
vsutil = callPythonPackage ./plugins/vsutil { };
|
||||||
|
|
||||||
havsfunc = callPythonPackage ./plugins/havsfunc { };
|
havsfunc = callPythonPackage ./plugins/havsfunc { };
|
||||||
|
|
54
plugins/vsTAAmbk/default.nix
Normal file
54
plugins/vsTAAmbk/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python3, vapoursynth }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "vsTAAmbk";
|
||||||
|
version = "unstable-2020-08-13";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "HomeOfVapourSynthEvolution";
|
||||||
|
repo = pname;
|
||||||
|
rev = "4dddf1a86effb4c6ceae7ca493f1ceed434e37ea";
|
||||||
|
sha256 = "06n744b9qr495afrpp4c1i3vcr5cab114rx69xslbhiwy2mg237s";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./skip-opencl-test.diff
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
||||||
|
awarpsharp2
|
||||||
|
cas
|
||||||
|
eedi2
|
||||||
|
eedi3m
|
||||||
|
fmtconv
|
||||||
|
havsfunc
|
||||||
|
msmoosh
|
||||||
|
mvsfunc
|
||||||
|
mvtools
|
||||||
|
nnedi3
|
||||||
|
nnedi3cl
|
||||||
|
sangnom
|
||||||
|
tcanny
|
||||||
|
znedi3
|
||||||
|
];
|
||||||
|
|
||||||
|
format = "other";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -D vsTAAmbk.py $out/${python3.sitePackages}/vsTAAmbk.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
||||||
|
checkPhase = ''
|
||||||
|
PYTHONPATH=$out/${python3.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;
|
||||||
|
};
|
||||||
|
}
|
12
plugins/vsTAAmbk/skip-opencl-test.diff
Normal file
12
plugins/vsTAAmbk/skip-opencl-test.diff
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/test/vsTAAmbkTestCase.py b/test/vsTAAmbkTestCase.py
|
||||||
|
index ca85b73..7a70a00 100644
|
||||||
|
--- a/test/vsTAAmbkTestCase.py
|
||||||
|
+++ b/test/vsTAAmbkTestCase.py
|
||||||
|
@@ -64,6 +64,7 @@ class AATestCase(unittest.TestCase):
|
||||||
|
message = message.format(kernel=key, depth=clip.format.bits_per_sample)
|
||||||
|
print(message)
|
||||||
|
|
||||||
|
+ @unittest.skip("no OpenCL support in nix build sandbox")
|
||||||
|
def test_opencl(self):
|
||||||
|
test_clip = [self.gray8, self.gray16]
|
||||||
|
for clip in test_clip:
|
Loading…
Reference in a new issue