mirror of
https://github.com/tadeokondrak/vs-overlay
synced 2024-11-17 22:52: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.
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib, vapoursynthPlugins, buildPythonPackage, fetchFromGitHub, python, vapoursynth }:
|
|
let
|
|
propagatedBinaryPlugins = with vapoursynthPlugins; [
|
|
bilateral
|
|
descale
|
|
dfttest
|
|
fmtconv
|
|
nnedi3
|
|
];
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "fvsfunc";
|
|
version = "unstable-2020-10-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Irrational-Encoding-Wizardry";
|
|
repo = pname;
|
|
rev = "96211df1eb46cda49ffbf1c930d627fe3a5d5d5a";
|
|
sha256 = "0zyb96izws9lb53wlxx9p1ing5z9xy9gj98pblx4p5myim39xywq";
|
|
};
|
|
|
|
propagatedBuildInputs = (with vapoursynthPlugins; [
|
|
havsfunc
|
|
muvsfunc
|
|
mvsfunc
|
|
nnedi3_rpow2
|
|
]) ++ propagatedBinaryPlugins;
|
|
|
|
format = "other";
|
|
|
|
installPhase = ''
|
|
install -D fvsfunc.py $out/${python.sitePackages}/fvsfunc.py
|
|
'';
|
|
|
|
checkInputs = [ (vapoursynth.withPlugins propagatedBinaryPlugins) ];
|
|
checkPhase = ''
|
|
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
'';
|
|
pythonImportsCheck = [ "fvsfunc" ];
|
|
|
|
meta = with lib; {
|
|
description = "A small collection of VapourSynth functions";
|
|
homepage = "https://github.com/Irrational-Encoding-Wizardry/fvsfunc";
|
|
license = licenses.unfree; # no license
|
|
maintainers = with maintainers; [ sbruder ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|