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:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user