python3Packages.requests-kerberos: use pyspnego[kerberos]

This drops the hack to avoid these dependencies because PyPI's krb5 (not to be confused with the top-level system krb5) was not previously packaged in Nixpkgs.
This commit is contained in:
Elliot Cameron
2024-08-13 19:35:00 -04:00
parent bbdd87069f
commit 45172e6548
@@ -30,19 +30,13 @@ buildPythonPackage rec {
requests
pykerberos
pyspnego
];
] ++ pyspnego.optional-dependencies.kerberos;
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
# avoid needing to package krb5
postPatch = ''
substituteInPlace setup.py \
--replace "pyspnego[kerberos]" "pyspnego"
'';
pythonImportsCheck = [ "requests_kerberos" ];
meta = with lib; {