forked from mirrors/nixpkgs
36 lines
752 B
Nix
36 lines
752 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, pycrypto
|
|
, requests
|
|
, pytestrunner
|
|
, pytest
|
|
, requests-mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apache-libcloud";
|
|
version = "2.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "29ee7d13b9b12d1335e752a489c01eed0c270940147f418cfff89ab66faf1305";
|
|
};
|
|
|
|
checkInputs = [ mock pytest pytestrunner requests-mock ];
|
|
propagatedBuildInputs = [ pycrypto requests ];
|
|
|
|
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
|
|
|
|
# requires a certificates file
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A unified interface to many cloud providers";
|
|
homepage = http://incubator.apache.org/libcloud/;
|
|
license = licenses.asl20;
|
|
};
|
|
|
|
}
|