forked from mirrors/nixpkgs
29 lines
758 B
Nix
29 lines
758 B
Nix
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
|
, numpy, nose, enum34, futures }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tifffile";
|
|
version = "0.13.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "43d3903e8ea4542aaa4759ec3683641555d3a15e68fa5a41aaf14cce4110641a";
|
|
};
|
|
|
|
checkInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests --exe -v --exclude="test_extension"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ numpy ]
|
|
++ lib.optional isPy27 futures
|
|
++ lib.optional (pythonOlder "3.0") enum34;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Read and write image data from and to TIFF files.";
|
|
homepage = https://github.com/blink1073/tifffile;
|
|
maintainers = [ maintainers.lebastr ];
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|