Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 80 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, buildPythonPackage, pythonOlder, fetchPypi, google-api-python-client, google-auth-oauthlib, jupyterhub, mwoauth, pyjwt, pytest-asyncio, pytestCheckHook, requests-mock, setuptools,}:
buildPythonPackage rec { pname = "oauthenticator"; version = "16.3.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-QMddGJUfafXoBxMCjlx1lH45a4Bab3AP4j8Px7JxYaQ="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail " --cov=oauthenticator" "" '';
build-system = [ setuptools ];
dependencies = [ jupyterhub pyjwt ];
passthru.optional-dependencies = { googlegroups = [ google-api-python-client google-auth-oauthlib ]; mediawiki = [ mwoauth ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook requests-mock ] ++ lib.flatten (builtins.attrValues passthru.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 = with maintainers; [ ]; };}