2018-07-21 01:00:37 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-16 13:32:05 -07:00
|
|
|
, isPy27
|
2018-07-21 01:00:37 -07:00
|
|
|
, numpy
|
2020-06-12 19:31:01 -07:00
|
|
|
, ffmpeg
|
2021-01-18 22:50:56 -08:00
|
|
|
, pkg-config
|
2018-07-21 01:00:37 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "av";
|
2020-06-05 23:46:58 -07:00
|
|
|
version = "8.0.2";
|
2020-06-16 13:32:05 -07:00
|
|
|
disabled = isPy27; # setup.py no longer compatible
|
2018-07-21 01:00:37 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:46:58 -07:00
|
|
|
sha256 = "a3bba6bf68766b8a1a057f28869c7078cf0a1ec3207c7788c2ce8fe6f6bd8267";
|
2018-07-21 01:00:37 -07:00
|
|
|
};
|
|
|
|
|
2019-05-12 04:07:18 -07:00
|
|
|
checkInputs = [ numpy ];
|
2019-02-13 23:37:11 -08:00
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-06-12 19:31:01 -07:00
|
|
|
buildInputs = [ ffmpeg ];
|
2018-07-21 01:00:37 -07:00
|
|
|
|
2018-10-08 13:59:49 -07:00
|
|
|
# Tests require downloading files from internet
|
2018-07-21 01:00:37 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pythonic bindings for FFmpeg/Libav";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/mikeboers/PyAV/";
|
2018-07-21 01:00:37 -07:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2018-10-08 13:59:49 -07:00
|
|
|
}
|