depot/third_party/nixpkgs/pkgs/development/python-modules/os-client-config/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

62 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fixtures,
hacking,
jsonschema,
openstacksdk,
oslotest,
python-glanceclient,
setuptools,
stestr,
subunit,
testscenarios,
testtools,
}:
buildPythonPackage rec {
pname = "os-client-config";
version = "2.1.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-q8OKNR+MAG009+5fP2SN5ePs9kVcxdds/YidKRzfP04=";
};
build-system = [ setuptools ];
dependencies = [
openstacksdk
python-glanceclient
];
nativeCheckInputs = [
hacking
fixtures
jsonschema
subunit
oslotest
stestr
testscenarios
testtools
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "os_client_config" ];
meta = with lib; {
homepage = "https://opendev.org/openstack/os-client-config";
description = "Collect client configuration for using OpenStack in consistent and comprehensive manner";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}