2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 22:18:40 +01:00
|
|
|
, buildPythonPackage
|
2020-06-26 05:53:19 +01:00
|
|
|
, isPy27
|
2018-11-04 17:32:33 +00:00
|
|
|
, fetchPypi
|
2019-02-21 08:40:41 +00:00
|
|
|
, imageio-ffmpeg
|
2018-10-16 22:18:40 +01:00
|
|
|
, numpy
|
2021-04-30 11:30:34 +01:00
|
|
|
, pillow
|
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
2018-10-16 22:18:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imageio";
|
2020-08-16 18:31:03 +01:00
|
|
|
version = "2.9.0";
|
2020-06-26 05:53:19 +01:00
|
|
|
disabled = isPy27;
|
2018-10-16 22:18:40 +01:00
|
|
|
|
2018-11-04 17:32:33 +00:00
|
|
|
src = fetchPypi {
|
2020-08-16 18:31:03 +01:00
|
|
|
sha256 = "52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0";
|
2018-11-04 17:32:33 +00:00
|
|
|
inherit pname version;
|
2018-10-16 22:18:40 +01:00
|
|
|
};
|
|
|
|
|
2021-04-30 11:30:34 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
imageio-ffmpeg
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-16 22:18:40 +01:00
|
|
|
|
2021-04-30 11:30:34 +01:00
|
|
|
preCheck = ''
|
2018-11-04 17:32:33 +00:00
|
|
|
export IMAGEIO_USERDIR="$TMP"
|
|
|
|
export IMAGEIO_NO_INTERNET="true"
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
2018-10-16 22:18:40 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 22:18:40 +01:00
|
|
|
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://imageio.github.io/";
|
2018-10-16 22:18:40 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|