2018-01-20 13:35:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-12 01:07:14 +00:00
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
2021-03-05 15:21:18 +00:00
|
|
|
, google-api-python-client
|
2021-02-12 01:07:14 +00:00
|
|
|
, google-auth-oauthlib
|
2018-01-20 13:35:03 +00:00
|
|
|
, jupyterhub
|
|
|
|
, mwoauth
|
|
|
|
, pyjwt
|
2021-02-12 01:07:14 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2018-01-20 13:35:03 +00:00
|
|
|
, requests-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthenticator";
|
2021-02-11 10:02:17 +00:00
|
|
|
version = "0.13.0";
|
2021-02-12 01:07:14 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-01-20 13:35:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-11 10:02:17 +00:00
|
|
|
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
|
2018-01-20 13:35:03 +00:00
|
|
|
};
|
|
|
|
|
2021-02-12 01:07:14 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterhub
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "oauthenticator/tests" ];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-03-05 15:21:18 +00:00
|
|
|
google-api-python-client
|
2021-02-12 01:07:14 +00:00
|
|
|
google-auth-oauthlib
|
|
|
|
mwoauth
|
|
|
|
pyjwt
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
2018-01-20 13:35:03 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|