mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
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
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, pathlib
|
||||
, fetchPypi
|
||||
, pillow
|
||||
@ -16,6 +17,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "imageio";
|
||||
version = "2.8.0";
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
sha256 = "fb5fd6d3d17126bbaac9af29fe340e2c97a196eb9416d4f28c0e543744a152cf";
|
||||
@ -25,11 +27,7 @@ buildPythonPackage rec {
|
||||
checkInputs = [ pytest psutil ] ++ stdenv.lib.optionals isPy3k [
|
||||
imageio-ffmpeg ffmpeg_3
|
||||
];
|
||||
propagatedBuildInputs = [ numpy pillow ] ++ stdenv.lib.optionals (!isPy3k) [
|
||||
futures
|
||||
enum34
|
||||
pathlib
|
||||
];
|
||||
propagatedBuildInputs = [ numpy pillow ];
|
||||
|
||||
checkPhase = ''
|
||||
export IMAGEIO_USERDIR="$TMP"
|
||||
|
Loading…
Reference in New Issue
Block a user