nixpkgs-suyu/pkgs/development/python-modules/tifffile/default.nix
Chris Ostrouchov f5ce8aface pythonPackages.tifffile: 2018.10.18 -> 0.15.1
Downgrade package. 2018.XX.XX are not official releases? Fixes
dask-image build as well.
2018-12-03 16:50:41 +01:00

31 lines
906 B
Nix

{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
, numpy, nose, enum34, futures, pathlib }:
buildPythonPackage rec {
pname = "tifffile";
# 2018.10.18 and 2018.11.6 are not releases...?
# https://github.com/blink1073/tifffile/issues/54
# anaconda uses 0.15.1
version = "0.15.1";
src = fetchPypi {
inherit pname version;
sha256 = "1fbb2cfd57fd8e42e417bc29001a17f319701f1be00e0b8a0004a52da93f1b08";
};
checkInputs = [ nose ];
checkPhase = ''
nosetests --exe -v --exclude="test_extension"
'';
propagatedBuildInputs = [ numpy ]
++ lib.optional isPy27 [ futures pathlib ]
++ lib.optional (pythonOlder "3.0") enum34;
meta = with stdenv.lib; {
description = "Read and write image data from and to TIFF files.";
homepage = https://github.com/blink1073/tifffile;
maintainers = [ maintainers.lebastr ];
license = licenses.bsd2;
};
}