2020-06-15 15:56:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, pycrypto
|
|
|
|
, requests
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2020-06-15 15:56:04 +00:00
|
|
|
, pytest
|
|
|
|
, requests-mock
|
|
|
|
, typing
|
|
|
|
, backports_ssl_match_hostname
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apache-libcloud";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.8.3";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "70096690b24a7832cc5abdfda1954b49fddc1c09a348a1e6caa781ac867ed4c6";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ mock pytest pytest-runner requests-mock ];
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ pycrypto requests ]
|
|
|
|
++ lib.optionals isPy27 [ typing backports_ssl_match_hostname ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|