2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-15 15:56:04 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2020-06-18 07:06:33 +00:00
|
|
|
, ffmpeg
|
2020-04-24 23:36:52 +00:00
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "av";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "8.0.2";
|
|
|
|
disabled = isPy27; # setup.py no longer compatible
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "a3bba6bf68766b8a1a057f28869c7078cf0a1ec3207c7788c2ce8fe6f6bd8267";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ numpy ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-06-18 07:06:33 +00:00
|
|
|
buildInputs = [ ffmpeg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests require downloading files from internet
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pythonic bindings for FFmpeg/Libav";
|
|
|
|
homepage = "https://github.com/mikeboers/PyAV/";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|