2019-12-30 13:52:01 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2019-12-30 18:14:18 +00:00
|
|
|
, isPy3k
|
2019-12-30 13:52:01 +00:00
|
|
|
, numpy
|
2019-06-06 05:23:38 +00:00
|
|
|
, imagecodecs-lite
|
2021-03-24 16:45:56 +00:00
|
|
|
, enum34 ? null
|
|
|
|
, futures ? null
|
|
|
|
, pathlib ? null
|
2019-03-02 13:12:28 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2021-03-24 09:28:30 +00:00
|
|
|
version = "2021.3.17";
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:30 +00:00
|
|
|
sha256 = "1b72c92ecd2273e52686c0f8792d1d1c4da4109b241dd1723dfe56ef4d1ad612";
|
2018-01-13 18:12:56 +00:00
|
|
|
};
|
|
|
|
|
2019-03-02 13:12:28 +00: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;
|
2019-12-30 13:52:01 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2018-01-13 18:12:56 +00:00
|
|
|
checkPhase = ''
|
2019-03-02 13:12:28 +00:00
|
|
|
pytest
|
2018-01-13 18:12:56 +00:00
|
|
|
'';
|
|
|
|
|
2019-12-30 13:52:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2019-12-30 18:14:18 +00:00
|
|
|
] ++ lib.optionals isPy3k [
|
2019-12-30 13:52:01 +00:00
|
|
|
imagecodecs-lite
|
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
futures
|
|
|
|
enum34
|
|
|
|
pathlib
|
|
|
|
];
|
2018-01-13 18:12:56 +00:00
|
|
|
|
2019-03-02 13:12:28 +00:00
|
|
|
meta = with lib; {
|
2018-01-13 18:12:56 +00:00
|
|
|
description = "Read and write image data from and to TIFF files.";
|
2019-06-06 05:23:38 +00:00
|
|
|
homepage = "https://www.lfd.uci.edu/~gohlke/";
|
2018-01-13 18:12:56 +00:00
|
|
|
maintainers = [ maintainers.lebastr ];
|
2019-03-02 13:12:28 +00:00
|
|
|
license = licenses.bsd3;
|
2018-01-13 18:12:56 +00:00
|
|
|
};
|
|
|
|
}
|