python3Packages.tifffile: refactor fix broken build

This commit is contained in:
Chris Ostrouchov 2019-12-30 08:52:01 -05:00
parent e291a32cd4
commit 0a126855c0
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573

View file

@ -1,5 +1,12 @@
{ lib, fetchPypi, buildPythonPackage, isPy27
, numpy, enum34, futures, pathlib
{ lib
, fetchPypi
, buildPythonPackage
, isPy27
, numpy
, imagecodecs-lite
, enum34
, futures
, pathlib
, pytest
}:
@ -17,13 +24,23 @@ buildPythonPackage rec {
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
# and test data missing from PyPI tarball
doCheck = false;
checkInputs = [ pytest ];
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
propagatedBuildInputs = [ numpy ]
++ lib.optionals isPy27 [ futures enum34 pathlib ];
propagatedBuildInputs = [
numpy
imagecodecs-lite
] ++ lib.optionals isPy27 [
futures
enum34
pathlib
];
meta = with lib; {
description = "Read and write image data from and to TIFF files.";