1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, mock
6, pycrypto
7, requests
8, pytestrunner
9, pytest
10, requests-mock
11, typing
12, backports_ssl_match_hostname
13}:
14
15buildPythonPackage rec {
16 pname = "apache-libcloud";
17 version = "2.8.3";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "70096690b24a7832cc5abdfda1954b49fddc1c09a348a1e6caa781ac867ed4c6";
22 };
23
24 checkInputs = [ mock pytest pytestrunner requests-mock ];
25 propagatedBuildInputs = [ pycrypto requests ]
26 ++ lib.optionals isPy27 [ typing backports_ssl_match_hostname ];
27
28 preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
29
30 # requires a certificates file
31 doCheck = false;
32
33 meta = with lib; {
34 description = "A unified interface to many cloud providers";
35 homepage = "http://incubator.apache.org/libcloud/";
36 license = licenses.asl20;
37 };
38
39}