2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dask,
|
|
|
|
fetchPypi,
|
|
|
|
fsspec,
|
|
|
|
lxml,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
zarr,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2024.6.18";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-V+DSoDS8tih+oxVdhxZQjfrIZEOiV/ZQK1fuf4ozs7Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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"
|
2022-09-30 11:47:45 +00:00
|
|
|
"test_issue_imagej_hyperstack_arg"
|
|
|
|
"test_issue_description_overwrite"
|
2022-06-26 10:26:21 +00:00
|
|
|
# AssertionError
|
|
|
|
"test_write_bigtiff"
|
|
|
|
"test_write_imagej_raw"
|
2022-08-12 12:06:08 +00:00
|
|
|
# https://github.com/cgohlke/tifffile/issues/142
|
|
|
|
"test_func_bitorder_decode"
|
2023-05-24 13:37:59 +00:00
|
|
|
# Test file is missing
|
|
|
|
"test_issue_invalid_predictor"
|
2022-01-19 23:45:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "tifffile" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# flaky, often killed due to OOM or timeout
|
|
|
|
env.SKIP_LARGE = "1";
|
|
|
|
|
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/";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/cgohlke/tifffile/blob/v${version}/CHANGES.rst";
|
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
|
|
|
};
|
|
|
|
}
|