My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/libcloud/default.nix

49 lines
1002 B

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