1{ lib
2, buildPythonPackage
3, isPy27
4, fetchPypi
5, imageio-ffmpeg
6, numpy
7, pillow
8, psutil
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "imageio";
14 version = "2.9.0";
15 disabled = isPy27;
16
17 src = fetchPypi {
18 sha256 = "52ddbaeca2dccf53ba2d6dec5676ca7bc3b2403ef8b37f7da78b7654bb3e10f0";
19 inherit pname version;
20 };
21
22 propagatedBuildInputs = [
23 imageio-ffmpeg
24 numpy
25 pillow
26 ];
27
28 checkInputs = [
29 psutil
30 pytestCheckHook
31 ];
32
33 preCheck = ''
34 export IMAGEIO_USERDIR="$TMP"
35 export IMAGEIO_NO_INTERNET="true"
36 export HOME="$(mktemp -d)"
37 '';
38
39 meta = with lib; {
40 description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
41 homepage = "http://imageio.github.io/";
42 license = licenses.bsd2;
43 };
44}