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 06:23:38 +01:00
|
|
|
, imagecodecs-lite
|
2019-12-30 13:52:01 +00:00
|
|
|
, enum34
|
|
|
|
, futures
|
|
|
|
, pathlib
|
2019-03-02 13:12:28 +00:00
|
|
|
, pytest
|
|
|
|
}:
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2020-11-29 14:04:44 +00:00
|
|
|
version = "2020.11.26";
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:44 +00:00
|
|
|
sha256 = "c712df6f201385fbd3500e26e45dc20fabcbb0c6c1fbfb4c1e44538a9d0269a8";
|
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 06:23:38 +01: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
|
|
|
};
|
|
|
|
}
|