2019-12-30 13:52:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-01-14 16:00:05 +00:00
|
|
|
, dask
|
|
|
|
, fetchPypi
|
|
|
|
, fsspec
|
|
|
|
, lxml
|
2019-12-30 13:52:01 +00:00
|
|
|
, numpy
|
2022-01-14 16:00:05 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zarr
|
2019-03-02 13:12:28 +00:00
|
|
|
}:
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2021-11-25 22:47:18 +00:00
|
|
|
version = "2021.11.2";
|
2022-01-14 16:00:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-01-13 18:12:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-14 16:00:05 +00:00
|
|
|
hash = "sha256-FT4x+h2JL0gvq7KunyVh+kKe5C0BpvZ+WM7hNjfZKFs=";
|
2018-01-13 18:12:56 +00:00
|
|
|
};
|
|
|
|
|
2022-01-14 16:00:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
2019-12-30 13:52:01 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-14 16:00:05 +00:00
|
|
|
dask
|
|
|
|
fsspec
|
|
|
|
lxml
|
|
|
|
pytestCheckHook
|
|
|
|
zarr
|
2019-12-30 13:52:01 +00:00
|
|
|
];
|
|
|
|
|
2022-01-14 16:00:05 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test require network access
|
|
|
|
"test_class_omexml"
|
|
|
|
"test_write_ome"
|
|
|
|
# Test file is missing
|
|
|
|
"test_write_predictor"
|
|
|
|
];
|
2018-01-13 18:12:56 +00:00
|
|
|
|
2022-01-14 16:00:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tifffile"
|
2019-12-30 13:52:01 +00:00
|
|
|
];
|
2018-01-13 18:12:56 +00:00
|
|
|
|
2019-03-02 13:12:28 +00:00
|
|
|
meta = with lib; {
|
2022-01-14 16:00:05 +00:00
|
|
|
description = "Read and write image data from and to TIFF files";
|
|
|
|
homepage = "https://github.com/cgohlke/tifffile/";
|
2019-03-02 13:12:28 +00:00
|
|
|
license = licenses.bsd3;
|
2022-01-14 16:00:05 +00:00
|
|
|
maintainers = with maintainers; [ lebastr ];
|
2018-01-13 18:12:56 +00:00
|
|
|
};
|
|
|
|
}
|