python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / tifffile / default.nix
blobbb85250daebfa1ca8abb94413d729eaf92f534e4
2   lib,
3   buildPythonPackage,
4   dask,
5   fetchPypi,
6   fsspec,
7   lxml,
8   numpy,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools,
12   zarr,
15 buildPythonPackage rec {
16   pname = "tifffile";
17   version = "2024.9.20";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-P7874vmVpwUaiuBaS+cMlvwHifIu1vHEEEyXPPaKZAs=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [ numpy ];
31   nativeCheckInputs = [
32     dask
33     fsspec
34     lxml
35     pytestCheckHook
36     zarr
37   ];
39   disabledTests = [
40     # Test require network access
41     "test_class_omexml"
42     "test_write_ome"
43     # Test file is missing
44     "test_write_predictor"
45     "test_issue_imagej_hyperstack_arg"
46     "test_issue_description_overwrite"
47     # AssertionError
48     "test_write_bigtiff"
49     "test_write_imagej_raw"
50     # https://github.com/cgohlke/tifffile/issues/142
51     "test_func_bitorder_decode"
52     # Test file is missing
53     "test_issue_invalid_predictor"
54   ];
56   pythonImportsCheck = [ "tifffile" ];
58   # flaky, often killed due to OOM or timeout
59   env.SKIP_LARGE = "1";
61   meta = with lib; {
62     description = "Read and write image data from and to TIFF files";
63     homepage = "https://github.com/cgohlke/tifffile/";
64     changelog = "https://github.com/cgohlke/tifffile/blob/v${version}/CHANGES.rst";
65     license = licenses.bsd3;
66     maintainers = with maintainers; [ lebastr ];
67   };