nixpkgs/pkgs/development/python-modules/tifffile/default.nix

56 lines
925 B
Nix
Raw Normal View History

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