mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 00:50:17 +02:00
python3Packages.tifffile: refactor fix broken build
This commit is contained in:
parent
e291a32cd4
commit
0a126855c0
|
@ -1,5 +1,12 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, isPy27
|
{ lib
|
||||||
, numpy, enum34, futures, pathlib
|
, fetchPypi
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
|
, numpy
|
||||||
|
, imagecodecs-lite
|
||||||
|
, enum34
|
||||||
|
, futures
|
||||||
|
, pathlib
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,13 +24,23 @@ buildPythonPackage rec {
|
||||||
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
|
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
|
||||||
# and test data missing from PyPI tarball
|
# and test data missing from PyPI tarball
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy ]
|
propagatedBuildInputs = [
|
||||||
++ lib.optionals isPy27 [ futures enum34 pathlib ];
|
numpy
|
||||||
|
imagecodecs-lite
|
||||||
|
] ++ lib.optionals isPy27 [
|
||||||
|
futures
|
||||||
|
enum34
|
||||||
|
pathlib
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Read and write image data from and to TIFF files.";
|
description = "Read and write image data from and to TIFF files.";
|
||||||
|
|
Loading…
Reference in a new issue