5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dask
|
|
, fetchPypi
|
|
, fsspec
|
|
, lxml
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, zarr
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tifffile";
|
|
version = "2022.8.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-PnTg/UiDhHfrz0Dgm3eAvQle5ZILIjj0heLGhGOj3LQ=";
|
|
};
|
|
|
|
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"
|
|
"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"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|