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 = "14.2.0"; 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "4baa02ff2c159cbba06f8d07fe11a6e624285ca2f813b1258b4c68766c0ee46b"; 23 }; 24 25 propagatedBuildInputs = [ 26 jupyterhub 27 ]; 28 29 checkInputs = [ 30 google-api-python-client 31 google-auth-oauthlib 32 mwoauth 33 pyjwt 34 pytest-asyncio 35 pytestCheckHook 36 requests-mock 37 ]; 38 39 disabledTests = [ 40 # Test are outdated, https://github.com/jupyterhub/oauthenticator/issues/432 41 "test_azuread" 42 "test_mediawiki" 43 ]; 44 45 pythonImportsCheck = [ "oauthenticator" ]; 46 47 meta = with lib; { 48 description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more."; 49 homepage = "https://github.com/jupyterhub/oauthenticator"; 50 license = licenses.bsd3; 51 maintainers = with maintainers; [ ixxie ]; 52 }; 53}