2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-02-16 17:04:54 +00:00
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, google_api_python_client
|
|
|
|
, google-auth-oauthlib
|
2020-04-24 23:36:52 +00:00
|
|
|
, jupyterhub
|
|
|
|
, mwoauth
|
|
|
|
, pyjwt
|
2021-02-16 17:04:54 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthenticator";
|
2021-02-16 17:04:54 +00:00
|
|
|
version = "0.13.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-16 17:04:54 +00:00
|
|
|
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterhub
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "oauthenticator/tests" ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
google_api_python_client
|
|
|
|
google-auth-oauthlib
|
|
|
|
mwoauth
|
|
|
|
pyjwt
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
|
|
|
homepage = "https://github.com/jupyterhub/oauthenticator";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
};
|
|
|
|
}
|