2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, betamax
|
|
|
|
, hacking
|
|
|
|
, iso8601
|
|
|
|
, lxml
|
|
|
|
, oauthlib
|
|
|
|
, os-service-types
|
|
|
|
, oslo-config
|
|
|
|
, oslo-utils
|
|
|
|
, pbr
|
|
|
|
, pycodestyle
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, requests-kerberos
|
|
|
|
, requests-mock
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-09-18 10:52:07 +00:00
|
|
|
, six
|
|
|
|
, stestr
|
|
|
|
, stevedore
|
|
|
|
, testresources
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keystoneauth1";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "5.4.0";
|
|
|
|
pyproject= true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-GsE0FRzrAuULaK143smCG/if5TvTb8hlhQHEewfL31M=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# only a small portion of the listed packages are actually needed for running the tests
|
|
|
|
# so instead of removing them one by one remove everything
|
|
|
|
rm test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
betamax
|
|
|
|
iso8601
|
|
|
|
lxml
|
|
|
|
oauthlib
|
|
|
|
os-service-types
|
|
|
|
pbr
|
|
|
|
requests
|
|
|
|
requests-kerberos
|
|
|
|
six
|
|
|
|
stevedore
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
hacking
|
|
|
|
oslo-config
|
|
|
|
oslo-utils
|
|
|
|
pycodestyle
|
|
|
|
pyyaml
|
|
|
|
requests-mock
|
|
|
|
stestr
|
|
|
|
testresources
|
|
|
|
testtools
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# test_keystoneauth_betamax_fixture is incompatible with urllib3 2.0.0
|
|
|
|
# https://bugs.launchpad.net/keystoneauth/+bug/2020112
|
2021-09-18 10:52:07 +00:00
|
|
|
checkPhase = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
stestr run \
|
|
|
|
-E "keystoneauth1.tests.unit.test_betamax_fixture.TestBetamaxFixture.test_keystoneauth_betamax_fixture"
|
2021-09-18 10:52:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "keystoneauth1" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Authentication Library for OpenStack Identity";
|
|
|
|
homepage = "https://github.com/openstack/keystoneauth";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|