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