summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/vapoursynth/default.nix
blob: 8e50bba69a4d83b21d71d75a8cf102a67d3cb1de (plain)
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
32
33
34
{
  vapoursynth,
  cython,
  buildPythonPackage,
  unittestCheckHook,
  python,
}:

buildPythonPackage {
  pname = "vapoursynth";
  format = "setuptools";

  inherit (vapoursynth) version src;

  nativeBuildInputs = [ cython ];

  buildInputs = [ vapoursynth ];

  nativeCheckInputs = [ unittestCheckHook ];

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

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

  inherit (vapoursynth) meta;
}