2018-01-20 14:35:03 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, jupyterhub
|
|
|
|
, globus-sdk
|
|
|
|
, mwoauth
|
|
|
|
, codecov
|
|
|
|
, flake8
|
|
|
|
, pyjwt
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-tornado
|
|
|
|
, requests-mock
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oauthenticator";
|
2019-04-16 19:15:38 +02:00
|
|
|
version = "0.8.2";
|
2018-01-20 14:35:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 19:15:38 +02:00
|
|
|
sha256 = "5195b5d66808787894590926b038381eb47495c9df4fd0d907c84d86cb35132f";
|
2018-01-20 14:35:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test oauthenticator/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest
|
|
|
|
pytestcov pytest-tornado requests-mock pyjwt ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jupyterhub ];
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|