Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 46 lines 964 B view raw
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.8.2"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "5195b5d66808787894590926b038381eb47495c9df4fd0d907c84d86cb35132f"; 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}