1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, numpy
6, ffmpeg
7, pkg-config
8}:
9
10buildPythonPackage rec {
11 pname = "av";
12 version = "8.0.3";
13 disabled = isPy27; # setup.py no longer compatible
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "521814309c91d526b6b5c9517018aef2dd12bc3d86351037db69aa67730692b8";
18 };
19
20 checkInputs = [ numpy ];
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ ffmpeg ];
24
25 # Tests require downloading files from internet
26 doCheck = false;
27
28 meta = {
29 description = "Pythonic bindings for FFmpeg/Libav";
30 homepage = "https://github.com/mikeboers/PyAV/";
31 license = lib.licenses.bsd2;
32 };
33}