2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-01-19 23:45:15 +00:00
|
|
|
, dask
|
|
|
|
, fetchPypi
|
|
|
|
, fsspec
|
|
|
|
, lxml
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-01-19 23:45:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zarr
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "2021.11.2";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-19 23:45:15 +00:00
|
|
|
hash = "sha256-FT4x+h2JL0gvq7KunyVh+kKe5C0BpvZ+WM7hNjfZKFs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
2022-01-19 23:45:15 +00:00
|
|
|
dask
|
|
|
|
fsspec
|
|
|
|
lxml
|
|
|
|
pytestCheckHook
|
|
|
|
zarr
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test require network access
|
|
|
|
"test_class_omexml"
|
|
|
|
"test_write_ome"
|
|
|
|
# Test file is missing
|
|
|
|
"test_write_predictor"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tifffile"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-01-19 23:45:15 +00:00
|
|
|
description = "Read and write image data from and to TIFF files";
|
|
|
|
homepage = "https://github.com/cgohlke/tifffile/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2022-01-19 23:45:15 +00:00
|
|
|
maintainers = with maintainers; [ lebastr ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|