mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-15 05:32: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.
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchgit, vapoursynthPlugins, python, vapoursynth }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nnedi3_rpow2";
|
|
version = "1.1.0";
|
|
|
|
src = fetchgit {
|
|
url = "https://gist.github.com/4re/342624c9e1a144a696c6";
|
|
rev = "68ec4bdff1e51a3832b163198ed7ea00e1c1ab46";
|
|
sha256 = "0i112kqkrlinnkkx4rjfmzpzax07mn8gxh2bnf13ccjpbpxigrnn";
|
|
};
|
|
|
|
propagatedBuildInputs = with vapoursynthPlugins; [
|
|
fmtconv
|
|
nnedi3
|
|
nnedi3cl
|
|
znedi3
|
|
];
|
|
|
|
format = "other";
|
|
|
|
installPhase = ''
|
|
install -D nnedi3_rpow2.py $out/${python.sitePackages}/nnedi3_rpow2.py
|
|
'';
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBuildInputs) ];
|
|
checkPhase = ''
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
'';
|
|
pythonImportsCheck = [ "nnedi3_rpow2" ];
|
|
|
|
meta = with lib; {
|
|
description = "A vapoursynth plugin for enlarging images by powers of 2";
|
|
homepage = "https://gist.github.com/4re/342624c9e1a144a696c6";
|
|
license = licenses.unfree; # no license
|
|
maintainers = with maintainers; [ sbruder ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|