2019-03-02 14:12:28 +01:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy27
|
|
|
|
, numpy, enum34, futures, pathlib
|
|
|
|
, pytest
|
|
|
|
}:
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2019-12-10 19:07:42 +01:00
|
|
|
version = "2019.7.26.2";
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 19:07:42 +01:00
|
|
|
sha256 = "2abb91c3a23a61593c5635ac1a19f67e732b46291c305fcee0eeaad41181a13f";
|
2018-01-13 19:12:56 +01:00
|
|
|
};
|
|
|
|
|
2019-03-02 14:12:28 +01:00
|
|
|
patches = lib.optional isPy27 ./python2-regex-compat.patch;
|
|
|
|
|
|
|
|
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
|
|
|
|
# and test data missing from PyPI tarball
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ pytest ];
|
2018-01-13 19:12:56 +01:00
|
|
|
checkPhase = ''
|
2019-03-02 14:12:28 +01:00
|
|
|
pytest
|
2018-01-13 19:12:56 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ]
|
2019-11-24 20:14:31 +01:00
|
|
|
++ lib.optionals isPy27 [ futures enum34 pathlib ];
|
2018-01-13 19:12:56 +01:00
|
|
|
|
2019-03-02 14:12:28 +01:00
|
|
|
meta = with lib; {
|
2018-01-13 19:12:56 +01:00
|
|
|
description = "Read and write image data from and to TIFF files.";
|
2019-03-02 14:12:28 +01:00
|
|
|
homepage = https://www.lfd.uci.edu/~gohlke/;
|
2018-01-13 19:12:56 +01:00
|
|
|
maintainers = [ maintainers.lebastr ];
|
2019-03-02 14:12:28 +01:00
|
|
|
license = licenses.bsd3;
|
2018-01-13 19:12:56 +01:00
|
|
|
};
|
|
|
|
}
|