depot/third_party/nixpkgs/pkgs/development/python-modules/openstacksdk/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
platformdirs,
cryptography,
dogpile-cache,
jmespath,
jsonpatch,
keystoneauth1,
munch,
netifaces,
os-service-types,
pbr,
pythonOlder,
pyyaml,
requestsexceptions,
}:
buildPythonPackage rec {
pname = "openstacksdk";
version = "3.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-cH8V1+wHSrJDS5peGYT6yrAPgi0nL0wqXeDSKgnrec0=";
};
propagatedBuildInputs = [
platformdirs
cryptography
dogpile-cache
jmespath
jsonpatch
keystoneauth1
munch
netifaces
os-service-types
pbr
requestsexceptions
pyyaml
];
# Checks moved to 'passthru.tests' to workaround slowness
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "openstack" ];
meta = with lib; {
description = "An SDK for building applications to work with OpenStack";
mainProgram = "openstack-inventory";
homepage = "https://github.com/openstack/openstacksdk";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}