Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 dask, 5 fetchPypi, 6 fsspec, 7 lxml, 8 numpy, 9 pytestCheckHook, 10 pythonOlder, 11 zarr, 12}: 13 14buildPythonPackage rec { 15 pname = "tifffile"; 16 version = "2024.6.18"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-V+DSoDS8tih+oxVdhxZQjfrIZEOiV/ZQK1fuf4ozs7Y="; 24 }; 25 26 propagatedBuildInputs = [ 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 = with lib; { 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 = licenses.bsd3; 63 maintainers = with maintainers; [ lebastr ]; 64 }; 65}