2018-07-21 09:00:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
2018-10-08 21:59:49 +01:00
|
|
|
, ffmpeg_4
|
2018-07-21 09:00:37 +01:00
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "av";
|
2020-02-13 07:33:42 +00:00
|
|
|
version = "7.0.1";
|
2018-07-21 09:00:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-13 07:33:42 +00:00
|
|
|
sha256 = "10qav9dryly9h6n8vypx5m334v2lh88fsvgfg0zjy4bxjslay4zv";
|
2018-07-21 09:00:37 +01:00
|
|
|
};
|
|
|
|
|
2019-05-12 12:07:18 +01:00
|
|
|
checkInputs = [ numpy ];
|
2019-02-14 07:37:11 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ffmpeg_4 ];
|
2018-07-21 09:00:37 +01:00
|
|
|
|
2018-10-08 21:59:49 +01:00
|
|
|
# Tests require downloading files from internet
|
2018-07-21 09:00:37 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pythonic bindings for FFmpeg/Libav";
|
|
|
|
homepage = https://github.com/mikeboers/PyAV/;
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
};
|
2018-10-08 21:59:49 +01:00
|
|
|
}
|