nixpkgs/pkgs/development/python-modules/oauthenticator/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

58 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.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-0dmHPJtm4a+XMpGWi5Vz0lN4vYxkfzDXO42PsnsaC4U=";
};
propagatedBuildInputs = [
jupyterhub
];
nativeCheckInputs = [
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 ];
};
}