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