mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
45 lines
928 B
Nix
45 lines
928 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pycrypto,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apache-libcloud";
|
|
version = "3.8.0";
|
|
format = "setuptools";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|