depot/third_party/nixpkgs/pkgs/development/python-modules/oauthenticator/default.nix
Default email 29574b70c6 Project import generated by Copybara.
GitOrigin-RevId: 64b4617883844efe0cc20163e007ee636462eb18
2021-02-16 18:04:54 +01:00

47 lines
974 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, google_api_python_client
, google-auth-oauthlib
, jupyterhub
, mwoauth
, pyjwt
, pytest-asyncio
, pytestCheckHook
, requests-mock
}:
buildPythonPackage rec {
pname = "oauthenticator";
version = "0.13.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
};
propagatedBuildInputs = [
jupyterhub
];
pytestFlagsArray = [ "oauthenticator/tests" ];
checkInputs = [
google_api_python_client
google-auth-oauthlib
mwoauth
pyjwt
pytest-asyncio
pytestCheckHook
requests-mock
];
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 ];
};
}