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.11.0";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "ff1b4ba2458a6ee460c3c4161d780a12e94811b2daaa5d13acdb354fa21a9916";
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}