mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-26 10:42:26 +01:00
Simon Bruder
eeceb7e2e4
When overriding the python3 dependency of vapoursynth, it should get propagated to all plugins. Currently, however, this causes incompatibilities, because `vapoursynth.python3.callPackage` only sets the `python` attribute, not `python3`. This currently causes build failures due to different site-packages paths.
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib, buildPythonPackage, fetchFromGitHub, vapoursynthPlugins, python, vapoursynth }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vsTAAmbk";
|
|
version = "0.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HomeOfVapourSynthEvolution";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-KfU2f7tBhw007f4RmVruV3Pkgo1zdA4o43+1lL/ohKo=";
|
|
};
|
|
|
|
patches = [
|
|
./0001-Skip-OpenCL-test.patch
|
|
./0002-Use-format-IDs-from-VapourSynth-R55.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;
|
|
};
|
|
}
|