pythonPackages.libcloud: fix build

This commit is contained in:
Jonathan Ringer 2019-12-21 14:46:23 -08:00 committed by Frederik Rietdijk
parent 82edff8207
commit 7942341ac0

View file

@ -1,12 +1,14 @@
{ stdenv { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy27
, mock , mock
, pycrypto , pycrypto
, requests , requests
, pytestrunner , pytestrunner
, pytest , pytest
, requests-mock , requests-mock
, typing
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -19,14 +21,14 @@ buildPythonPackage rec {
}; };
checkInputs = [ mock pytest pytestrunner requests-mock ]; checkInputs = [ mock pytest pytestrunner requests-mock ];
propagatedBuildInputs = [ pycrypto requests ]; propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ];
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py"; preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
# requires a certificates file # requires a certificates file
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with lib; {
description = "A unified interface to many cloud providers"; description = "A unified interface to many cloud providers";
homepage = http://incubator.apache.org/libcloud/; homepage = http://incubator.apache.org/libcloud/;
license = licenses.asl20; license = licenses.asl20;