2018-01-13 18:12:56 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
2018-09-09 11:13:36 +01:00
|
|
|
, numpy, nose, enum34, futures, pathlib }:
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2018-11-04 10:35:19 +00:00
|
|
|
version = "2018.10.18";
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:19 +00:00
|
|
|
sha256 = "9ca8ee9a54d10d2b38ec262cc65abb687f38c34aa9cda23bb22077cd48a9b1ff";
|
2018-01-13 18:12:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --exe -v --exclude="test_extension"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ]
|
2018-09-09 11:13:36 +01:00
|
|
|
++ lib.optional isPy27 [ futures pathlib ]
|
2018-01-13 18:12:56 +00:00
|
|
|
++ 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;
|
|
|
|
};
|
|
|
|
}
|