Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 53 lines 1.0 kB view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, isPy27 5, isPy3k 6, numpy 7, imagecodecs-lite 8, enum34 ? null 9, futures ? null 10, pathlib ? null 11, pytest 12}: 13 14buildPythonPackage rec { 15 pname = "tifffile"; 16 version = "2021.3.17"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1b72c92ecd2273e52686c0f8792d1d1c4da4109b241dd1723dfe56ef4d1ad612"; 21 }; 22 23 patches = lib.optional isPy27 ./python2-regex-compat.patch; 24 25 # Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles 26 # and test data missing from PyPI tarball 27 doCheck = false; 28 29 checkInputs = [ 30 pytest 31 ]; 32 33 checkPhase = '' 34 pytest 35 ''; 36 37 propagatedBuildInputs = [ 38 numpy 39 ] ++ lib.optionals isPy3k [ 40 imagecodecs-lite 41 ] ++ lib.optionals isPy27 [ 42 futures 43 enum34 44 pathlib 45 ]; 46 47 meta = with lib; { 48 description = "Read and write image data from and to TIFF files."; 49 homepage = "https://www.lfd.uci.edu/~gohlke/"; 50 maintainers = [ maintainers.lebastr ]; 51 license = licenses.bsd3; 52 }; 53}