2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, pycrypto
|
|
|
|
, requests
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, requests-mock
|
|
|
|
, typing
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apache-libcloud";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "3.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "b9eef1a61383fd401a537cf0796a1067a265288b7ab89be93f5571961a8a2902";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest pytestrunner requests-mock ];
|
|
|
|
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 lib; {
|
|
|
|
description = "A unified interface to many cloud providers";
|
|
|
|
homepage = "http://incubator.apache.org/libcloud/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|