1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, google-api-python-client 6, google-auth-oauthlib 7, jupyterhub 8, mwoauth 9, pyjwt 10, pytest-asyncio 11, pytestCheckHook 12, requests-mock 13}: 14 15buildPythonPackage rec { 16 pname = "oauthenticator"; 17 version = "15.1.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-0dmHPJtm4a+XMpGWi5Vz0lN4vYxkfzDXO42PsnsaC4U="; 25 }; 26 27 propagatedBuildInputs = [ 28 jupyterhub 29 ]; 30 31 checkInputs = [ 32 google-api-python-client 33 google-auth-oauthlib 34 mwoauth 35 pyjwt 36 pytest-asyncio 37 pytestCheckHook 38 requests-mock 39 ]; 40 41 disabledTests = [ 42 # Tests are outdated, https://github.com/jupyterhub/oauthenticator/issues/432 43 "test_azuread" 44 "test_mediawiki" 45 ]; 46 47 pythonImportsCheck = [ 48 "oauthenticator" 49 ]; 50 51 meta = with lib; { 52 description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more."; 53 homepage = "https://github.com/jupyterhub/oauthenticator"; 54 license = licenses.bsd3; 55 maintainers = with maintainers; [ ixxie ]; 56 }; 57}