pythonPackages.libcloud: fix build
This commit is contained in:
parent
82edff8207
commit
7942341ac0
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue