Unverified Commit 0741cf76 authored by cid-chan's avatar cid-chan Committed by GitHub
Browse files

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

parent fdf275af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ runCommand "${vapoursynth.name}-with-plugins" {
  nativeBuildInputs = [ makeWrapper ];
  passthru = {
    inherit python3;
    inherit (vapoursynth) src version;
    withPlugins = plugins': withPlugins (plugins ++ plugins');
  };
} ''
+8 −1
Original line number Diff line number Diff line
{ 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;
}