From 0a126855c014008d817157a67412eabe3cb5e75e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 30 Dec 2019 08:52:01 -0500 Subject: [PATCH] python3Packages.tifffile: refactor fix broken build --- .../python-modules/tifffile/default.nix | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/tifffile/default.nix b/pkgs/development/python-modules/tifffile/default.nix index 8aafc39fc344..2220c8069291 100644 --- a/pkgs/development/python-modules/tifffile/default.nix +++ b/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 }: @@ -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.";