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 = "3.3.1";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "d7450453eaf5904eb4fb4f74cf9f37dc83721a719bce34f5abb336b1a1ab974d";
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 pythonImportsCheck = [ "libcloud" ];
32
33 meta = with lib; {
34 description = "A unified interface to many cloud providers";
35 homepage = "https://libcloud.apache.org/";
36 changelog = "https://github.com/apache/libcloud/blob/v${version}/CHANGES.rst";
37 license = licenses.asl20;
38 };
39
40}