Files
nixpkgs/pkgs/development/python-modules/oauthenticator/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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.concatAttrValues 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 = {
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 = lib.licenses.bsd3;
maintainers = [ ];
};
}