02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, betamax
|
|
, hacking
|
|
, iso8601
|
|
, lxml
|
|
, oauthlib
|
|
, os-service-types
|
|
, oslo-config
|
|
, oslo-utils
|
|
, pbr
|
|
, pycodestyle
|
|
, pyyaml
|
|
, requests
|
|
, requests-kerberos
|
|
, requests-mock
|
|
, six
|
|
, stestr
|
|
, stevedore
|
|
, testresources
|
|
, testtools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "keystoneauth1";
|
|
version = "5.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-brtfBEyd/SYwh6Mo1R1HmUfR3ckMCdr0GR333HEzQyM=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
betamax
|
|
iso8601
|
|
lxml
|
|
oauthlib
|
|
os-service-types
|
|
pbr
|
|
requests
|
|
requests-kerberos
|
|
six
|
|
stevedore
|
|
];
|
|
|
|
checkInputs = [
|
|
hacking
|
|
oslo-config
|
|
oslo-utils
|
|
pycodestyle
|
|
pyyaml
|
|
requests-mock
|
|
stestr
|
|
testresources
|
|
testtools
|
|
];
|
|
|
|
checkPhase = ''
|
|
stestr run
|
|
'';
|
|
|
|
pythonImportsCheck = [ "keystoneauth1" ];
|
|
|
|
meta = with lib; {
|
|
description = "Authentication Library for OpenStack Identity";
|
|
homepage = "https://github.com/openstack/keystoneauth";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|