Skip to content

Commit

Permalink
python312Packages.keystoneauth1: 5.8.0 -> 5.9.1, define optional-depe…
Browse files Browse the repository at this point in the history
…ndencies
  • Loading branch information
r-ryantm authored and SuperSandro2000 committed Dec 26, 2024
1 parent efd9668 commit 5ffacb6
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions pkgs/development/python-modules/keystoneauth1/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
buildPythonPackage,
fetchPypi,
betamax,
fixtures,
hacking,
iso8601,
lxml,
Expand All @@ -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 = ''
Expand All @@ -43,29 +44,33 @@ buildPythonPackage rec {
build-system = [ setuptools ];

dependencies = [
betamax
iso8601
lxml
oauthlib
os-service-types
pbr
requests
requests-kerberos
six
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
Expand Down

0 comments on commit 5ffacb6

Please sign in to comment.