From f02103d40cf9604d205e386b7e43ad0d7f5bace3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Aug 2023 08:17:25 +0200 Subject: [PATCH] python311Packages.oauthenticator: 15.1.0 -> 16.0.4 Changelog: https://github.com/jupyterhub/oauthenticator/blob/16.0.4/docs/source/reference/changelog.md --- .../python-modules/oauthenticator/default.nix | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/oauthenticator/default.nix b/pkgs/development/python-modules/oauthenticator/default.nix index 33d04b78a533..d9169997a246 100644 --- a/pkgs/development/python-modules/oauthenticator/default.nix +++ b/pkgs/development/python-modules/oauthenticator/default.nix @@ -14,29 +14,43 @@ buildPythonPackage rec { pname = "oauthenticator"; - version = "15.1.0"; + version = "16.0.4"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-0dmHPJtm4a+XMpGWi5Vz0lN4vYxkfzDXO42PsnsaC4U="; + hash = "sha256-6dZt+GIbmOgC+R5KlFc5W2jpPaxCn+GkNkVhR/4Tke8="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=oauthenticator" "" + ''; + propagatedBuildInputs = [ jupyterhub ]; + passthru.optional-dependencies = { + azuread = [ + pyjwt + ]; + googlegroups = [ + google-api-python-client + google-auth-oauthlib + ]; + mediawiki = [ + mwoauth + ]; + }; + nativeCheckInputs = [ - google-api-python-client - google-auth-oauthlib - mwoauth - pyjwt pytest-asyncio pytestCheckHook requests-mock - ]; + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); disabledTests = [ # Tests are outdated, https://github.com/jupyterhub/oauthenticator/issues/432 @@ -49,8 +63,9 @@ buildPythonPackage rec { ]; meta = with lib; { - description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more."; + description = "Authenticate JupyterHub users with common OAuth providers"; homepage = "https://github.com/jupyterhub/oauthenticator"; + changelog = "https://github.com/jupyterhub/oauthenticator/blob/${version}/docs/source/reference/changelog.md"; license = licenses.bsd3; maintainers = with maintainers; [ ixxie ]; };