Files
nixpkgs/pkgs/development/python-modules/oauthenticator/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

86 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
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;
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 = [ ];
};
}