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