2019-12-21 22:46:23 +00:00
|
|
|
{ lib
|
2018-10-15 22:02:51 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-21 22:46:23 +00:00
|
|
|
, isPy27
|
2018-10-15 22:02:51 +01:00
|
|
|
, mock
|
|
|
|
, pycrypto
|
2018-11-04 10:35:04 +00:00
|
|
|
, requests
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, requests-mock
|
2019-12-21 22:46:23 +00:00
|
|
|
, typing
|
2018-10-15 22:02:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apache-libcloud";
|
2021-01-04 04:25:45 +00:00
|
|
|
version = "3.3.0";
|
2018-10-15 22:02:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-04 04:25:45 +00:00
|
|
|
sha256 = "2e3e4d02f9b3197f9119e737bc704fba52f34459d4bc96d8ad8f183d600747ba";
|
2018-10-15 22:02:51 +01:00
|
|
|
};
|
|
|
|
|
2018-11-04 10:35:04 +00:00
|
|
|
checkInputs = [ mock pytest pytestrunner requests-mock ];
|
2019-12-21 22:46:23 +00:00
|
|
|
propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ];
|
2018-10-15 22:02:51 +01:00
|
|
|
|
|
|
|
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
|
|
|
|
|
2018-11-04 10:35:04 +00:00
|
|
|
# requires a certificates file
|
2018-10-15 22:02:51 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-12-21 22:46:23 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 22:02:51 +01:00
|
|
|
description = "A unified interface to many cloud providers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://incubator.apache.org/libcloud/";
|
2018-10-15 22:02:51 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|