2018-01-13 19:12:56 +01:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
2018-09-09 12:13:36 +02:00
|
|
|
, numpy, nose, enum34, futures, pathlib }:
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tifffile";
|
2018-11-30 14:00:40 +01:00
|
|
|
# 2018.10.18 and 2018.11.6 are not releases...?
|
|
|
|
# https://github.com/blink1073/tifffile/issues/54
|
|
|
|
# anaconda uses 0.15.1
|
2019-02-14 08:37:31 +01:00
|
|
|
version = "2019.2.10";
|
2018-01-13 19:12:56 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:31 +01:00
|
|
|
sha256 = "ead5f84c0b100f8100377b8ef2bcffaf21c249784ddc240346b715408b45f42c";
|
2018-01-13 19:12:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --exe -v --exclude="test_extension"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ]
|
2018-09-09 12:13:36 +02:00
|
|
|
++ lib.optional isPy27 [ futures pathlib ]
|
2018-01-13 19:12:56 +01:00
|
|
|
++ 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;
|
|
|
|
};
|
|
|
|
}
|