Commit 45172e65 authored by Elliot Cameron's avatar Elliot Cameron
Browse files

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.
parent bbdd8706
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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; {