2018-10-15 21:02:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pycrypto
|
2018-11-04 10:35:04 +00:00
|
|
|
, requests
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, requests-mock
|
2018-10-15 21:02:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apache-libcloud";
|
2019-02-09 11:41:02 +00:00
|
|
|
version = "2.4.0";
|
2018-10-15 21:02:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-09 11:41:02 +00:00
|
|
|
sha256 = "0daj3mkzw79v5zin2r1s2wkrz1hplfc16bwj4ss68i5qjq4l2p0j";
|
2018-10-15 21:02:51 +00:00
|
|
|
};
|
|
|
|
|
2018-11-04 10:35:04 +00:00
|
|
|
checkInputs = [ mock pytest pytestrunner requests-mock ];
|
|
|
|
propagatedBuildInputs = [ pycrypto requests ];
|
2018-10-15 21:02:51 +00: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 21:02:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A unified interface to many cloud providers";
|
|
|
|
homepage = http://incubator.apache.org/libcloud/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|