depot/third_party/nixpkgs/pkgs/development/python-modules/tifffile/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

68 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, dask
, fetchPypi
, fsspec
, lxml
, numpy
, pytestCheckHook
, pythonOlder
, zarr
}:
buildPythonPackage rec {
pname = "tifffile";
version = "2023.9.26";
format = "setuptools";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-Z+NV5Flaqzl/hAXQSv4bSufG9ipE4i2TP+4aVxpIx64=";
};
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
dask
fsspec
lxml
pytestCheckHook
zarr
];
disabledTests = [
# Test require network access
"test_class_omexml"
"test_write_ome"
# Test file is missing
"test_write_predictor"
"test_issue_imagej_hyperstack_arg"
"test_issue_description_overwrite"
# AssertionError
"test_write_bigtiff"
"test_write_imagej_raw"
# https://github.com/cgohlke/tifffile/issues/142
"test_func_bitorder_decode"
# Test file is missing
"test_issue_invalid_predictor"
];
pythonImportsCheck = [
"tifffile"
];
# flaky, often killed due to OOM or timeout
env.SKIP_LARGE = "1";
meta = with lib; {
description = "Read and write image data from and to TIFF files";
homepage = "https://github.com/cgohlke/tifffile/";
changelog = "https://github.com/cgohlke/tifffile/blob/v${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ lebastr ];
};
}