1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pycrypto,
6 pythonOlder,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "apache-libcloud";
12 version = "3.8.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-db9MCxI7wiXiTKlfyhw1vjCxnmu4X+6ngUBNQ8QnbJE=";
20 };
21
22 propagatedBuildInputs = [
23 pycrypto
24 requests
25 ];
26
27 preConfigure = ''
28 cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
29 '';
30
31 postPatch = ''
32 substituteInPlace setup.py \
33 --replace "setup_requires=pytest_runner," "setup_requires=[],"
34 '';
35
36 # requires a certificates file
37 doCheck = false;
38
39 pythonImportsCheck = [ "libcloud" ];
40
41 meta = with lib; {
42 description = "Unified interface to many cloud providers";
43 homepage = "https://libcloud.apache.org/";
44 changelog = "https://github.com/apache/libcloud/blob/v${version}/CHANGES.rst";
45 license = licenses.asl20;
46 maintainers = [ ];
47 };
48}