ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / libcloud / default.nix
blob7ebfe30ac93788d68d06540dcd49d9c1c490b7f1
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pycrypto
5 , pythonOlder
6 , requests
7 }:
9 buildPythonPackage rec {
10   pname = "apache-libcloud";
11   version = "3.6.1";
12   format = "setuptools";
14   disabled = pythonOlder "3.6";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "sha256-D6zzIGVoQwyZjaQOm7rG06DE/IDdUWdNnnlLOBRQEgw=";
19   };
21   propagatedBuildInputs = [
22     pycrypto
23     requests
24   ];
26   preConfigure = ''
27     cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
28   '';
30   postPatch = ''
31     substituteInPlace setup.py \
32       --replace "setup_requires=pytest_runner," "setup_requires=[],"
33   '';
35   # requires a certificates file
36   doCheck = false;
38   pythonImportsCheck = [
39     "libcloud"
40   ];
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   };