3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.vapoursynth: add a withPlugins to extend it (#190660)

This commit is contained in:
cid-chan 2022-09-15 14:24:21 +02:00 committed by GitHub
parent fdf275af5f
commit 0741cf76d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -42,6 +42,7 @@ runCommand "${vapoursynth.name}-with-plugins" {
nativeBuildInputs = [ makeWrapper ];
passthru = {
inherit python3;
inherit (vapoursynth) src version;
withPlugins = plugins': withPlugins (plugins ++ plugins');
};
} ''

View file

@ -1,4 +1,4 @@
{ vapoursynth, cython, buildPythonPackage, unittestCheckHook }:
{ vapoursynth, cython, buildPythonPackage, unittestCheckHook, python }:
buildPythonPackage {
pname = "vapoursynth";
@ -19,6 +19,13 @@ buildPythonPackage {
unittestFlagsArray = [ "-s" "$src/test" "-p" "'*test.py'" ];
passthru = {
withPlugins = plugins:
python.pkgs.vapoursynth.override {
vapoursynth = vapoursynth.withPlugins plugins;
};
};
inherit (vapoursynth) meta;
}