Files
nixpkgs/pkgs/development/python-modules/libcloud/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
976 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pycrypto,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "apache-libcloud";
version = "3.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-db9MCxI7wiXiTKlfyhw1vjCxnmu4X+6ngUBNQ8QnbJE=";
};
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" ];
meta = {
description = "Unified interface to many cloud providers";
homepage = "https://libcloud.apache.org/";
changelog = "https://github.com/apache/libcloud/blob/v${version}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = [ ];
};
}