b55a4ee46f
GitOrigin-RevId: e9158eca70ae59e73fae23be5d13d3fa0cfc78b4
46 lines
962 B
Nix
46 lines
962 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, jupyterhub
|
|
, globus-sdk
|
|
, mwoauth
|
|
, codecov
|
|
, flake8
|
|
, pyjwt
|
|
, pytest
|
|
, pytestcov
|
|
, pytest-tornado
|
|
, requests-mock
|
|
, pythonOlder
|
|
, fetchPypi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oauthenticator";
|
|
version = "0.12.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f86e18e954ae37796ee149fe01ab0be0707d9e0415d62336ba3447e7b4383461";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|