mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 07:26:54 +00:00
47 lines
965 B
Nix
47 lines
965 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.10.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cb4e23fcfe8dc9099c4ca005f8991b0f605b03a3e1cf4fed654b2470f6065bdf";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|