about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ffmpeg-python/default.nix
blob: 1f8c6983cbd8b24de606bec20452efc589eea92d (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
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, pytestCheckHook
, ffmpeg
, future
, pytest-runner
, pytest-mock
}:

buildPythonPackage rec {
  pname = "ffmpeg-python";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "kkroening";
    repo = "ffmpeg-python";
    rev = version;
    sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
  };

  patches = [
    (substituteAll {
      src = ./ffmpeg-location.patch;
      inherit ffmpeg;
    })
  ];

  buildInputs = [ pytest-runner ];
  propagatedBuildInputs = [ future ];
  checkInputs = [ pytestCheckHook pytest-mock ];

  meta = with lib; {
    description = "Python bindings for FFmpeg - with complex filtering support";
    homepage = "https://github.com/kkroening/ffmpeg-python";
    license = licenses.asl20;
    maintainers = [ maintainers.AluisioASG ];
  };
}