nixpkgs/pkgs/development/python-modules/libcloud/default.nix

36 lines
740 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, mock
, pycrypto
, requests
, pytestrunner
, pytest
, requests-mock
}:
buildPythonPackage rec {
pname = "apache-libcloud";
2019-09-05 20:15:46 +00:00
version = "2.6.0";
src = fetchPypi {
inherit pname version;
2019-09-05 20:15:46 +00:00
sha256 = "1spjkw5nxhbawblj5db8izff05kjw425iyydipajb7qh73vm25r0";
};
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;
};
}