summary refs log tree commit diff
path: root/pkgs/development/python-modules/ffmpeg-python/default.nix
blob: ae7dc43020b5fbcf9623407deb11033adfe09fd5 (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
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, ffmpeg
, future
, pytest
, pytestrunner
, 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 = [ pytestrunner ];
  propagatedBuildInputs = [ future ];
  checkInputs = [ pytest 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 ];
    platforms = platforms.all;
  };
}