mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-14 13:12: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.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, python, vapoursynth }:
|
|
let
|
|
propagatedBinaryPlugins = with vapoursynthPlugins; [
|
|
f3kdb
|
|
fmtconv
|
|
#rgsf
|
|
];
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "debandshit";
|
|
version = "unstable-2020-05-28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "LightArrowsEXE";
|
|
repo = pname;
|
|
rev = "d5529c97cdd7f01dcc261d6e79b2aa63b3758cbe";
|
|
sha256 = "0gwpjglm74y6a7x9ws7is7algnwm3i0ds65nz3ki8faigx1jh52a";
|
|
};
|
|
|
|
propagatedBuildInputs = (with vapoursynthPlugins; [
|
|
fvsfunc
|
|
muvsfunc
|
|
mvsfunc
|
|
]) ++ propagatedBinaryPlugins;
|
|
|
|
format = "other";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D debandshit.py $out/${python.sitePackages}/debandshit.py
|
|
runHook postInstall
|
|
'';
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
runHook postCheck
|
|
'';
|
|
pythonImportsCheck = [ "debandshit" ];
|
|
|
|
meta = with lib; {
|
|
description = "Various debanding tools for VapourSynth";
|
|
homepage = "https://github.com/LightArrowsEXE/debandshit";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sbruder ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|