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
, fetchPypi
, isPy27
, mock
, pycrypto
, requests
, pytestrunner
, pytest
, requests-mock
, typing
}:
buildPythonPackage rec {
@ -19,14 +21,14 @@ buildPythonPackage rec {
};
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";
# requires a certificates file
doCheck = false;
meta = with stdenv.lib; {
meta = with lib; {
description = "A unified interface to many cloud providers";
homepage = http://incubator.apache.org/libcloud/;
license = licenses.asl20;