python3Packages.oauthenticator: 0.13.0 -> 14.0.0
This commit is contained in:
parent
28b5164fca
commit
cc9e009e79
|
@ -14,20 +14,18 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "oauthenticator";
|
pname = "oauthenticator";
|
||||||
version = "0.13.0";
|
version = "14.0.0";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
|
sha256 = "1zfcl3dq9ladqg7fnpx6kgxf1ckjzlc8v3j6wa8w6iwglm40ax4r";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jupyterhub
|
jupyterhub
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "oauthenticator/tests" ];
|
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
google-api-python-client
|
google-api-python-client
|
||||||
google-auth-oauthlib
|
google-auth-oauthlib
|
||||||
|
@ -38,6 +36,20 @@ buildPythonPackage rec {
|
||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# The constraint was removed. No longer needed for > 14.0.0
|
||||||
|
# https://github.com/jupyterhub/oauthenticator/pull/431
|
||||||
|
substituteInPlace test-requirements.txt --replace "pyjwt>=1.7,<2.0" "pyjwt"
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Test are outdated, https://github.com/jupyterhub/oauthenticator/issues/432
|
||||||
|
"test_azuread"
|
||||||
|
"test_mediawiki"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "oauthenticator" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
description = "Authenticate JupyterHub users with common OAuth providers, including GitHub, Bitbucket, and more.";
|
||||||
homepage = "https://github.com/jupyterhub/oauthenticator";
|
homepage = "https://github.com/jupyterhub/oauthenticator";
|
||||||
|
|
Loading…
Reference in New Issue