nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 65 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 dask, 5 fetchPypi, 6 fsspec, 7 lxml, 8 numpy, 9 pytestCheckHook, 10 setuptools, 11 zarr, 12}: 13 14buildPythonPackage rec { 15 pname = "tifffile"; 16 version = "2026.1.14"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-pCPFg+HuzZyiVWQtR/Rj76jX8jZaDhEOsBZ1cEk+DIw="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ numpy ]; 27 28 nativeCheckInputs = [ 29 dask 30 fsspec 31 lxml 32 pytestCheckHook 33 zarr 34 ]; 35 36 disabledTests = [ 37 # Test require network access 38 "test_class_omexml" 39 "test_write_ome" 40 # Test file is missing 41 "test_write_predictor" 42 "test_issue_imagej_hyperstack_arg" 43 "test_issue_description_overwrite" 44 # AssertionError 45 "test_write_bigtiff" 46 "test_write_imagej_raw" 47 # https://github.com/cgohlke/tifffile/issues/142 48 "test_func_bitorder_decode" 49 # Test file is missing 50 "test_issue_invalid_predictor" 51 ]; 52 53 pythonImportsCheck = [ "tifffile" ]; 54 55 # flaky, often killed due to OOM or timeout 56 env.SKIP_LARGE = "1"; 57 58 meta = { 59 description = "Read and write image data from and to TIFF files"; 60 homepage = "https://github.com/cgohlke/tifffile/"; 61 changelog = "https://github.com/cgohlke/tifffile/blob/v${version}/CHANGES.rst"; 62 license = lib.licenses.bsd3; 63 maintainers = with lib.maintainers; [ lebastr ]; 64 }; 65}