pythonPackages.imageio: disable python2
``` Processing ./imageio-2.8.0-py2-none-any.whl ERROR: Package 'imageio' requires a different Python: 2.7.18 not in '>=3.5' ```
This commit is contained in:
parent
990d80657d
commit
f122c08d93
@ -1,5 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
, pathlib
|
, pathlib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pillow
|
, pillow
|
||||||
@ -16,6 +17,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "imageio";
|
pname = "imageio";
|
||||||
version = "2.8.0";
|
version = "2.8.0";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
sha256 = "fb5fd6d3d17126bbaac9af29fe340e2c97a196eb9416d4f28c0e543744a152cf";
|
sha256 = "fb5fd6d3d17126bbaac9af29fe340e2c97a196eb9416d4f28c0e543744a152cf";
|
||||||
@ -25,11 +27,7 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytest psutil ] ++ stdenv.lib.optionals isPy3k [
|
checkInputs = [ pytest psutil ] ++ stdenv.lib.optionals isPy3k [
|
||||||
imageio-ffmpeg ffmpeg_3
|
imageio-ffmpeg ffmpeg_3
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ numpy pillow ] ++ stdenv.lib.optionals (!isPy3k) [
|
propagatedBuildInputs = [ numpy pillow ];
|
||||||
futures
|
|
||||||
enum34
|
|
||||||
pathlib
|
|
||||||
];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export IMAGEIO_USERDIR="$TMP"
|
export IMAGEIO_USERDIR="$TMP"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user