1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 05:19:17 +03:00
nixpkgs/pkgs/development/python-modules/libcloud/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1,002 B
Nix
Raw Normal View History

2019-12-21 14:46:23 -08:00
{ lib
, buildPythonPackage
, fetchPypi
, pycrypto
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "apache-libcloud";
version = "3.6.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-D6zzIGVoQwyZjaQOm7rG06DE/IDdUWdNnnlLOBRQEgw=";
};
propagatedBuildInputs = [
pycrypto
requests
];
preConfigure = ''
cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
'';
postPatch = ''
substituteInPlace setup.py \
--replace "setup_requires=pytest_runner," "setup_requires=[],"
'';
# requires a certificates file
doCheck = false;
pythonImportsCheck = [
"libcloud"
];
2019-12-21 14:46:23 -08:00
meta = with lib; {
description = "A unified interface to many cloud providers";
2021-01-30 20:51:10 -05:00
homepage = "https://libcloud.apache.org/";
changelog = "https://github.com/apache/libcloud/blob/v${version}/CHANGES.rst";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}