2018-01-13 19:12:56 +01:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
|
|
|
, numpy, nose, enum34, futures }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2018-02-03 10:54:59 +01:00
|
|
|
version = "0.13.5";
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-03 10:54:59 +01:00
|
|
|
sha256 = "bca0fc9eaf609a27ebd99d8466e05d5a6e79389957f17582b70643dbca65e3d8";
|
2018-01-13 19:12:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --exe -v --exclude="test_extension"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ]
|
|
|
|
++ lib.optional isPy27 futures
|
|
|
|
++ 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;
|
|
|
|
};
|
|
|
|
}
|