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

38 lines
797 B
Nix
Raw Normal View History

2019-12-21 22:46:23 +00:00
{ lib
, buildPythonPackage
, fetchPypi
2019-12-21 22:46:23 +00:00
, isPy27
, mock
, pycrypto
, requests
, pytestrunner
, pytest
, requests-mock
2019-12-21 22:46:23 +00:00
, typing
}:
buildPythonPackage rec {
pname = "apache-libcloud";
version = "3.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "1b14b1f5f91ceeff5cf228613e76577d7b41e790dccd53a0f647ef816fb5495c";
};
checkInputs = [ mock pytest pytestrunner requests-mock ];
2019-12-21 22:46:23 +00:00
propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ];
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
# requires a certificates file
doCheck = false;
2019-12-21 22:46:23 +00:00
meta = with lib; {
description = "A unified interface to many cloud providers";
homepage = "http://incubator.apache.org/libcloud/";
license = licenses.asl20;
};
}