Files
nixpkgs/pkgs/development/python-modules/keystoneauth1/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

82 lines
1.5 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.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-AXwrm1mUU8kpQHUO27IPF2hxIbKJARS/nTbfFKBicRc=";
};
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
];
nativeCheckInputs = [
hacking
oslo-config
oslo-utils
pycodestyle
pyyaml
requests-mock
stestr
testresources
testtools
];
# test_keystoneauth_betamax_fixture is incompatible with urllib3 2.0.0
# https://bugs.launchpad.net/keystoneauth/+bug/2020112
checkPhase = ''
stestr run \
-E "keystoneauth1.tests.unit.test_betamax_fixture.TestBetamaxFixture.test_keystoneauth_betamax_fixture"
'';
pythonImportsCheck = [ "keystoneauth1" ];
meta = with lib; {
description = "Authentication Library for OpenStack Identity";
homepage = "https://github.com/openstack/keystoneauth";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}