mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-22 17:02:25 +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.
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, buildPythonPackage, fetchgit, numpy, vapoursynthPlugins, python, vapoursynth }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mt_lutspa";
|
|
version = "unstable-2015-10-14";
|
|
|
|
src = fetchgit {
|
|
url = "https://gist.github.com/tp7/1e39044e1b660ef0a02c";
|
|
rev = "4ab492db4431bd27466b42d96bc5878db822499e";
|
|
sha256 = "0szws6fcrcgdn31szhrmglpl2kglrglx1bgxd0bjl3r51bxiry12";
|
|
};
|
|
|
|
patches = [
|
|
./0001-Use-vs.core-instead-of-vs.get_core.patch
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
];
|
|
|
|
format = "other";
|
|
|
|
installPhase = ''
|
|
install -D mt_lutspa.py $out/${python.sitePackages}/mt_lutspa.py
|
|
'';
|
|
|
|
checkInputs = [ vapoursynth ];
|
|
checkPhase = ''
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
'';
|
|
pythonImportsCheck = [ "mt_lutspa" ];
|
|
|
|
meta = with lib; {
|
|
description = "A vapoursynth plugin to computes the value of a pixel according to its spatial position";
|
|
homepage = "https://gist.github.com/tp7/1e39044e1b660ef0a02c";
|
|
license = licenses.unfree; # no license
|
|
maintainers = with maintainers; [ sbruder ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|