2018-07-21 09:00:37 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, pillow
|
|
|
|
, numpy
|
2018-10-08 21:59:49 +01:00
|
|
|
, ffmpeg_4
|
2018-07-21 09:00:37 +01:00
|
|
|
, git
|
|
|
|
, libav
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "av";
|
2019-01-02 21:46:06 +00:00
|
|
|
version = "6.1.0";
|
2018-07-21 09:00:37 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-02 21:46:06 +00:00
|
|
|
sha256 = "0h5d6yy6mjaflzh9z8fv3j1rjwijmzqfrpz88zxk0qfmbprdc91z";
|
2018-07-21 09:00:37 +01:00
|
|
|
};
|
|
|
|
|
2018-10-08 21:59:49 +01:00
|
|
|
buildInputs = [ nose pillow numpy ffmpeg_4 git pkgconfig ];
|
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
|
|
|
}
|