python312Packages.keystoneauth1: 5.8.0 -> 5.9.1, define optional-dependencies
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
betamax,
|
||||
fixtures,
|
||||
hacking,
|
||||
iso8601,
|
||||
lxml,
|
||||
@@ -17,21 +18,21 @@
|
||||
requests-kerberos,
|
||||
requests-mock,
|
||||
setuptools,
|
||||
six,
|
||||
stestr,
|
||||
stevedore,
|
||||
testresources,
|
||||
testtools,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "keystoneauth1";
|
||||
version = "5.8.0";
|
||||
version = "5.9.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-MVfCEuEhFk3mTWPl734dqtK9NkmmjeHpcbdodwGe8cQ=";
|
||||
hash = "sha256-+wxm2ELVuWR1ImT/8gs7Src2ENZtm40g0Nz3lroJ3EM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@@ -42,30 +43,39 @@ buildPythonPackage rec {
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
betamax
|
||||
iso8601
|
||||
lxml
|
||||
oauthlib
|
||||
os-service-types
|
||||
pbr
|
||||
requests
|
||||
requests-kerberos
|
||||
six
|
||||
stevedore
|
||||
];
|
||||
dependencies =
|
||||
[
|
||||
iso8601
|
||||
os-service-types
|
||||
pbr
|
||||
requests
|
||||
stevedore
|
||||
typing-extensions
|
||||
]
|
||||
# TODO: remove this workaround and fix breakages
|
||||
++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
optional-dependencies = {
|
||||
betamax = [
|
||||
betamax
|
||||
fixtures
|
||||
pyyaml
|
||||
];
|
||||
kerberos = [ requests-kerberos ];
|
||||
oauth1 = [ oauthlib ];
|
||||
saml2 = [ lxml ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
hacking
|
||||
oslo-config
|
||||
oslo-utils
|
||||
pycodestyle
|
||||
pyyaml
|
||||
requests-mock
|
||||
stestr
|
||||
testresources
|
||||
testtools
|
||||
];
|
||||
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
# test_keystoneauth_betamax_fixture is incompatible with urllib3 2.0.0
|
||||
# https://bugs.launchpad.net/keystoneauth/+bug/2020112
|
||||
|
||||
Reference in New Issue
Block a user