summary refs log tree commit diff
path: root/pkgs/development/python-modules/libcloud/2.nix
blob: c59e026fe4f3184573b39c95cae73d4b66187b04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, pycrypto
, requests
, pytest-runner
, 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 pytest-runner 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;
  };

}