Skip to content

Commit

Permalink
python3Packages.tifffile: refactor fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Dec 30, 2019
1 parent e291a32 commit 0a12685
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions pkgs/development/python-modules/tifffile/default.nix
@@ -1,5 +1,12 @@
{ lib, fetchPypi, buildPythonPackage, isPy27
, numpy, enum34, futures, pathlib
{ lib
, fetchPypi
, buildPythonPackage
, isPy27
, numpy
, imagecodecs-lite
, enum34
, futures
, pathlib
, pytest
}:

Expand All @@ -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.";
Expand Down

0 comments on commit 0a12685

Please sign in to comment.