Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

89 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
google-api-python-client,
google-auth-oauthlib,
jsonschema,
jupyterhub,
mwoauth,
pyjwt,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
requests,
requests-mock,
ruamel-yaml,
setuptools,
tornado,
traitlets,
}:
buildPythonPackage rec {
pname = "oauthenticator";
version = "17.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-5dkMskEf/z3G/MFjNGgjPA4OAjlCLAh8dzTRaFBVuPM=";
};
build-system = [ setuptools ];
dependencies = [
jsonschema
jupyterhub
pyjwt
requests
ruamel-yaml
tornado
traitlets
];
optional-dependencies = {
googlegroups = [
google-api-python-client
google-auth-oauthlib
];
mediawiki = [ mwoauth ];
};
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
requests-mock
]
++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = [
# Tests are outdated, https://github.com/jupyterhub/oauthenticator/issues/432
"test_azuread"
"test_mediawiki"
# Tests require network access
"test_allowed"
"test_auth0"
"test_bitbucket"
"test_cilogon"
"test_github"
"test_gitlab"
"test_globus"
"test_google"
"test_openshift"
];
pythonImportsCheck = [ "oauthenticator" ];
meta = with lib; {
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 = [ ];
};
}