1{ lib 2, buildPythonPackage 3, jupyterhub 4, globus-sdk 5, mwoauth 6, codecov 7, flake8 8, pyjwt 9, pytest 10, pytestcov 11, pytest-tornado 12, requests-mock 13, pythonOlder 14, fetchPypi 15}: 16 17buildPythonPackage rec { 18 pname = "oauthenticator"; 19 version = "0.7.3"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "cb0b2564e46db28350693bc3e6457333c4ee21af5066ac743730e3f3173ea7ed"; 24 }; 25 26 checkPhase = '' 27 py.test oauthenticator/tests 28 ''; 29 30 # No tests in archive 31 doCheck = false; 32 33 checkInputs = [ globus-sdk mwoauth codecov flake8 pytest 34 pytestcov pytest-tornado requests-mock pyjwt ]; 35 36 propagatedBuildInputs = [ jupyterhub ]; 37 38 disabled = pythonOlder "3.4"; 39 40 meta = with lib; { 41 description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more."; 42 homepage = https://github.com/jupyterhub/oauthenticator; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ ixxie ]; 45 }; 46}