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";
|
2018-11-04 10:35:04 +00:00
|
|
|
version = "2.3.0";
|
2018-10-15 21:02:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:04 +00:00
|
|
|
sha256 = "0e2eee3802163bd0605975ed1e284cafc23203919bfa80c0cc5d3cd2543aaf97";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|