depot/third_party/nixpkgs/pkgs/development/python-modules/oauthenticator/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

57 lines
1.1 KiB
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 = "15.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-LjC/Ly3wQL55gjCyoWZikvK6ByiS1CEsZXK0/lmzmGA=";
};
propagatedBuildInputs = [
jupyterhub
];
checkInputs = [
google-api-python-client
google-auth-oauthlib
mwoauth
pyjwt
pytest-asyncio
pytestCheckHook
requests-mock
];
disabledTests = [
# Tests are outdated, https://github.com/jupyterhub/oauthenticator/issues/432
"test_azuread"
"test_mediawiki"
];
pythonImportsCheck = [
"oauthenticator"
];
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 ];
};
}