depot/third_party/nixpkgs/pkgs/development/python-modules/libcloud/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

37 lines
785 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, pycrypto
, requests
, pytestrunner
, pytest
, requests-mock
, typing
}:
buildPythonPackage rec {
pname = "apache-libcloud";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1b28j265kvibgxrgxx0gwfm6cmv252c8ph1j2vb0cpms8ph5if5v";
};
checkInputs = [ mock pytest pytestrunner requests-mock ];
propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ];
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;
};
}