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