pythonPackages.tifffile: fix python 2 build (#46415)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
{ lib, stdenv, fetchPypi, buildPythonPackage, isPy27, pythonOlder
|
||||||
, numpy, nose, enum34, futures }:
|
, numpy, nose, enum34, futures, pathlib }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tifffile";
|
pname = "tifffile";
|
||||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy ]
|
propagatedBuildInputs = [ numpy ]
|
||||||
++ lib.optional isPy27 futures
|
++ lib.optional isPy27 [ futures pathlib ]
|
||||||
++ lib.optional (pythonOlder "3.0") enum34;
|
++ lib.optional (pythonOlder "3.0") enum34;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|||||||
Reference in New Issue
Block a user