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-03-02 14:12:28 +01:00
|
|
|
version = "2019.2.22";
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-02 14:12:28 +01:00
|
|
|
sha256 = "ed49d75b3eff711dbe74b35324dfd79e0db598b6e772a9096001545e81e95437";
|
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-03-02 14:12:28 +01:00
|
|
|
++ lib.optional 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
|
|
|
};
|
|
|
|
}
|