aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/libcloud/2.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/libcloud/2.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/libcloud/2.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/libcloud/2.nix b/nixpkgs/pkgs/development/python-modules/libcloud/2.nix
new file mode 100644
index 00000000000..52c1cf9a9d7
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/libcloud/2.nix
@@ -0,0 +1,39 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, isPy27
+, mock
+, pycrypto
+, requests
+, pytestrunner
+, pytest
+, requests-mock
+, typing
+, backports_ssl_match_hostname
+}:
+
+buildPythonPackage rec {
+ pname = "apache-libcloud";
+ version = "2.8.3";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "70096690b24a7832cc5abdfda1954b49fddc1c09a348a1e6caa781ac867ed4c6";
+ };
+
+ checkInputs = [ mock pytest pytestrunner requests-mock ];
+ propagatedBuildInputs = [ pycrypto requests ]
+ ++ lib.optionals isPy27 [ typing backports_ssl_match_hostname ];
+
+ preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
+
+ # requires a certificates file
+ doCheck = false;
+
+ meta = with lib; {
+ description = "A unified interface to many cloud providers";
+ homepage = "http://incubator.apache.org/libcloud/";
+ license = licenses.asl20;
+ };
+
+}