2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
google-api-python-client,
|
|
|
|
google-auth-oauthlib,
|
2024-06-20 14:57:18 +00:00
|
|
|
jsonschema,
|
2024-06-05 15:53:02 +00:00
|
|
|
jupyterhub,
|
|
|
|
mwoauth,
|
|
|
|
pyjwt,
|
|
|
|
pytest-asyncio,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2024-06-20 14:57:18 +00:00
|
|
|
requests,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests-mock,
|
2024-06-20 14:57:18 +00:00
|
|
|
ruamel-yaml,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
2024-06-20 14:57:18 +00:00
|
|
|
tornado,
|
|
|
|
traitlets,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthenticator";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "17.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-0eRfcuI+GuhgF0myZPy8ZcL4kBCLv6PcGEk+92J+GZ0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2024-06-20 14:57:18 +00:00
|
|
|
jsonschema
|
2021-02-16 17:04:54 +00:00
|
|
|
jupyterhub
|
2024-04-21 15:54:59 +00:00
|
|
|
pyjwt
|
2024-06-20 14:57:18 +00:00
|
|
|
requests
|
|
|
|
ruamel-yaml
|
|
|
|
tornado
|
|
|
|
traitlets
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
googlegroups = [
|
|
|
|
google-api-python-client
|
|
|
|
google-auth-oauthlib
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
mediawiki = [ mwoauth ];
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
pytest-asyncio
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub
|
2021-02-16 17:04:54 +00:00
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabledTests = [
|
2022-06-16 17:23:12 +00:00
|
|
|
# Tests are outdated, https://github.com/jupyterhub/oauthenticator/issues/432
|
2021-05-20 23:08:51 +00:00
|
|
|
"test_azuread"
|
|
|
|
"test_mediawiki"
|
2024-04-21 15:54:59 +00:00
|
|
|
# Tests require network access
|
|
|
|
"test_allowed"
|
|
|
|
"test_auth0"
|
|
|
|
"test_bitbucket"
|
|
|
|
"test_cilogon"
|
|
|
|
"test_github"
|
|
|
|
"test_gitlab"
|
|
|
|
"test_globus"
|
|
|
|
"test_google"
|
|
|
|
"test_openshift"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "oauthenticator" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-08-22 20:05:09 +00:00
|
|
|
description = "Authenticate JupyterHub users with common OAuth providers";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/jupyterhub/oauthenticator";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/jupyterhub/oauthenticator/blob/${version}/docs/source/reference/changelog.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|