2019-02-21 08:40:41 +00:00
|
|
|
{ lib
|
2019-02-21 08:23:24 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-29 20:47:53 +00:00
|
|
|
, fetchpatch
|
2019-02-21 08:23:24 +00:00
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imageio-ffmpeg";
|
2020-06-06 06:47:13 +00:00
|
|
|
version = "0.4.2";
|
2019-02-21 08:23:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-29 20:47:53 +00:00
|
|
|
sha256 = "13b05b17a941a9f4a90b16910b1ffac159448cff051a153da8ba4b4343ffa195";
|
2019-02-21 08:23:24 +00:00
|
|
|
};
|
2020-12-29 20:47:53 +00:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
# Fixes compatibility with python3.9
|
|
|
|
# Should be included in the next release after 0.4.2
|
|
|
|
url = "https://github.com/imageio/imageio-ffmpeg/pull/43/commits/b90c39fe3d29418d67d953588ed9fdf4d848f811.patch";
|
|
|
|
sha256 = "0d9kf4w6ldwag3s2dr9zjin6wrj66fnl4fn8379ci4q4qfsqgx3f";
|
|
|
|
})];
|
2019-02-21 08:23:24 +00:00
|
|
|
|
2019-02-21 08:40:41 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-02-21 08:23:24 +00:00
|
|
|
# No test infrastructure in repository.
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-02-21 08:40:41 +00:00
|
|
|
meta = with lib; {
|
2019-02-21 08:23:24 +00:00
|
|
|
description = "FFMPEG wrapper for Python";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/imageio/imageio-ffmpeg";
|
2019-02-21 08:23:24 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.pmiddend ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|