summary refs log tree commit diff
path: root/pkgs/development/python-modules/imageio/default.nix
blob: cdbcfee7180f9e2b1694f264701350f8514427f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv
, buildPythonPackage
, fetchurl
, pytest
, numpy
}:

buildPythonPackage rec {
  pname = "imageio";
  version = "1.6";

  src = fetchurl {
    url = "https://github.com/imageio/imageio/archive/v${version}.tar.gz";
    sha256 = "195snkk3fsbjqd5g1cfsd9alzs5q45gdbi2ka9ph4yxqb31ijrbv";
  };

  buildInputs = [ pytest ];
  propagatedBuildInputs = [ numpy ];

  checkPhase = ''
    py.test
  '';

  # Tries to write in /var/tmp/.imageio
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
    homepage = http://imageio.github.io/;
    license = licenses.bsd2;
  };

}