forked from mirrors/nixpkgs
python310Packages.vapoursynth: add a withPlugins to extend it (#190660)
This commit is contained in:
parent
fdf275af5f
commit
0741cf76d9
|
@ -42,6 +42,7 @@ runCommand "${vapoursynth.name}-with-plugins" {
|
|||
nativeBuildInputs = [ makeWrapper ];
|
||||
passthru = {
|
||||
inherit python3;
|
||||
inherit (vapoursynth) src version;
|
||||
withPlugins = plugins': withPlugins (plugins ++ plugins');
|
||||
};
|
||||
} ''
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue