about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/vapoursynth/default.nix
blob: da75653962efa490d82d4a6a73de24a56a91482f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ vapoursynth, cython, buildPythonPackage, unittestCheckHook, python }:

buildPythonPackage {
  pname = "vapoursynth";

  inherit (vapoursynth) version src;

  nativeBuildInputs = [
    cython
  ];

  buildInputs = [
    vapoursynth
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  unittestFlagsArray = [ "-s" "$src/test" "-p" "'*test.py'" ];

  passthru = {
    withPlugins = plugins:
      python.pkgs.vapoursynth.override {
        vapoursynth = vapoursynth.withPlugins plugins;
      };
  };

  inherit (vapoursynth) meta;
}