1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, substituteAll
5, ffmpeg_3
6, future
7, pytest
8, pytestrunner
9, pytest-mock
10}:
11
12buildPythonPackage rec {
13 pname = "ffmpeg-python";
14 version = "0.2.0";
15
16 src = fetchFromGitHub {
17 owner = "kkroening";
18 repo = "ffmpeg-python";
19 rev = version;
20 sha256 = "0mmydmfz3yiclbgi4lqrv9fh2nalafg4bkm92y2qi50mwqgffk8f";
21 };
22
23 patches = [
24 (
25 substituteAll {
26 src = ./ffmpeg-location.patch;
27 ffmpeg = ffmpeg_3;
28 }
29 )
30 ];
31
32 buildInputs = [ pytestrunner ];
33 propagatedBuildInputs = [ future ];
34 checkInputs = [ pytest pytest-mock ];
35
36 meta = with lib; {
37 description = "Python bindings for FFmpeg - with complex filtering support";
38 homepage = "https://github.com/kkroening/ffmpeg-python";
39 license = licenses.asl20;
40 maintainers = [ maintainers.AluisioASG ];
41 platforms = platforms.all;
42 };
43}