Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 34 lines 877 B view raw
1{ lib, fetchPypi, buildPythonPackage, isPy27 2, numpy, enum34, futures, pathlib 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "tifffile"; 8 version = "2019.2.22"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "ed49d75b3eff711dbe74b35324dfd79e0db598b6e772a9096001545e81e95437"; 13 }; 14 15 patches = lib.optional isPy27 ./python2-regex-compat.patch; 16 17 # Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles 18 # and test data missing from PyPI tarball 19 doCheck = false; 20 checkInputs = [ pytest ]; 21 checkPhase = '' 22 pytest 23 ''; 24 25 propagatedBuildInputs = [ numpy ] 26 ++ lib.optional isPy27 [ futures enum34 pathlib ]; 27 28 meta = with lib; { 29 description = "Read and write image data from and to TIFF files."; 30 homepage = https://www.lfd.uci.edu/~gohlke/; 31 maintainers = [ maintainers.lebastr ]; 32 license = licenses.bsd3; 33 }; 34}