05580f4b44
Follow-up to #394797. Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
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=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix compatibility with openstacksdk 4.5.0
|
|
(fetchpatch {
|
|
url = "https://github.com/openstack/os-client-config/commit/46bc2deb4c6762dc1dd674686283eb3fa4c1d5e6.patch";
|
|
hash = "sha256-wZdwCbgrRg0mxs542zjWAlXn0PzCotlbZaEyinYKwb4=";
|
|
})
|
|
];
|
|
|
|
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; {
|
|
description = "Unified config handling for client libraries and programs";
|
|
homepage = "https://github.com/openstack/os-client-config";
|
|
license = licenses.asl20;
|
|
teams = [ teams.openstack ];
|
|
};
|
|
}
|