2018-01-20 13:35:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, jupyterhub
|
|
|
|
, globus-sdk
|
|
|
|
, mwoauth
|
|
|
|
, codecov
|
|
|
|
, flake8
|
|
|
|
, pyjwt
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-tornado
|
|
|
|
, requests-mock
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthenticator";
|
2020-12-07 09:34:51 +00:00
|
|
|
version = "0.12.3";
|
2018-01-20 13:35:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 09:34:51 +00:00
|
|
|
sha256 = "f86e18e954ae37796ee149fe01ab0be0707d9e0415d62336ba3447e7b4383461";
|
2018-01-20 13:35:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test oauthenticator/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2018-01-20 13:35:03 +00:00
|
|
|
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest
|
|
|
|
pytestcov pytest-tornado requests-mock pyjwt ];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2018-01-20 13:35:03 +00:00
|
|
|
propagatedBuildInputs = [ jupyterhub ];
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/jupyterhub/oauthenticator";
|
2018-01-20 13:35:03 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|