tutanota-desktop: 259.250108.1 -> 266.250202.0 (#377234)
[NixPkgs.git] / pkgs / development / python-modules / libcloud / default.nix
blob8fe46bd9572a706a2f97d92b4ff6f2f01edf6fd3
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pycrypto,
6   pythonOlder,
7   requests,
8 }:
10 buildPythonPackage rec {
11   pname = "apache-libcloud";
12   version = "3.8.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-db9MCxI7wiXiTKlfyhw1vjCxnmu4X+6ngUBNQ8QnbJE=";
20   };
22   propagatedBuildInputs = [
23     pycrypto
24     requests
25   ];
27   preConfigure = ''
28     cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
29   '';
31   postPatch = ''
32     substituteInPlace setup.py \
33       --replace "setup_requires=pytest_runner," "setup_requires=[],"
34   '';
36   # requires a certificates file
37   doCheck = false;
39   pythonImportsCheck = [ "libcloud" ];
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   };