mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
56 lines
925 B
Nix
56 lines
925 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dask
|
|
, fetchPypi
|
|
, fsspec
|
|
, lxml
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, zarr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tifffile";
|
|
version = "2021.11.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-FT4x+h2JL0gvq7KunyVh+kKe5C0BpvZ+WM7hNjfZKFs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
];
|
|
|
|
checkInputs = [
|
|
dask
|
|
fsspec
|
|
lxml
|
|
pytestCheckHook
|
|
zarr
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test require network access
|
|
"test_class_omexml"
|
|
"test_write_ome"
|
|
# Test file is missing
|
|
"test_write_predictor"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"tifffile"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Read and write image data from and to TIFF files";
|
|
homepage = "https://github.com/cgohlke/tifffile/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ lebastr ];
|
|
};
|
|
}
|