depot/third_party/nixpkgs/pkgs/development/python-modules/openstacksdk/default.nix

68 lines
1.2 KiB
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
platformdirs,
cryptography,
dogpile-cache,
jmespath,
jsonpatch,
keystoneauth1,
munch,
netifaces,
os-service-types,
pbr,
pythonOlder,
pyyaml,
requestsexceptions,
setuptools,
}:
buildPythonPackage rec {
pname = "openstacksdk";
version = "3.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-BghpDKN8pzMnsPo3YdF+ZTlb43/yALhzXY8kJ3tPSYA=";
};
build-system = [ setuptools ];
dependencies = [
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 = "SDK for building applications to work with OpenStack";
mainProgram = "openstack-inventory";
homepage = "https://github.com/openstack/openstacksdk";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}