Merge pull request #112747 from r-ryantm/auto-update/python3.7-oauthenticator
python37Packages.oauthenticator: 0.12.3 -> 0.13.0
This commit is contained in:
commit
c18f1912ce
@ -1,33 +1,39 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, alembic
|
, alembic
|
||||||
, ipython
|
|
||||||
, jinja2
|
|
||||||
, python-oauth2
|
|
||||||
, prometheus_client
|
|
||||||
, async_generator
|
, async_generator
|
||||||
|
, certipy
|
||||||
|
, dateutil
|
||||||
|
, entrypoints
|
||||||
|
, jinja2
|
||||||
|
, jupyter-telemetry
|
||||||
|
, oauthlib
|
||||||
, pamela
|
, pamela
|
||||||
|
, prometheus_client
|
||||||
|
, requests
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, tornado
|
, tornado
|
||||||
, traitlets
|
, traitlets
|
||||||
, requests
|
|
||||||
, notebook
|
|
||||||
, pythonOlder
|
|
||||||
, nodePackages
|
, nodePackages
|
||||||
, oauthlib
|
, beautifulsoup4
|
||||||
, certipy
|
, cryptography
|
||||||
, jupyter-telemetry
|
, notebook
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests-mock
|
||||||
|
, virtualenv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
# js/css assets that setup.py tries to fetch via `npm install` when building
|
# js/css assets that setup.py tries to fetch via `npm install` when building
|
||||||
# from source.
|
# from source. https://github.com/jupyterhub/jupyterhub/blob/master/package.json
|
||||||
bootstrap =
|
bootstrap =
|
||||||
fetchzip {
|
fetchzip {
|
||||||
url = "https://registry.npmjs.org/bootstrap/-/bootstrap-3.3.7.tgz";
|
url = "https://registry.npmjs.org/bootstrap/-/bootstrap-3.4.1.tgz";
|
||||||
sha256 = "0r7s54bbf68ri1na9bbabyf12mcpb6zk5ja2q6z82aw1fa4xi3yd";
|
sha256 = "1ywmxqdccg0mgx0xknrn1hlrfnhcwphc12y9l91zizx26fqfmzgc";
|
||||||
};
|
};
|
||||||
font-awesome =
|
font-awesome =
|
||||||
fetchzip {
|
fetchzip {
|
||||||
@ -36,30 +42,30 @@ let
|
|||||||
};
|
};
|
||||||
jquery =
|
jquery =
|
||||||
fetchzip {
|
fetchzip {
|
||||||
url = "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz";
|
url = "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz";
|
||||||
sha256 = "1j6y18miwzafdj8kfpwbmbn9qvgnbnpc7l4arqrhqj33m04xrlgi";
|
sha256 = "0yi9ql493din1qa1s923nd5zvd0klk1sx00xj1wx2yambmq86vm9";
|
||||||
};
|
};
|
||||||
moment =
|
moment =
|
||||||
fetchzip {
|
fetchzip {
|
||||||
url = "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz";
|
url = "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz";
|
||||||
sha256 = "12gb3p0rz5wyjwykv9g0pix7dd352lx1z7rzdjsf2brhwc4ffyip";
|
sha256 = "0ifzzla4zffw23g3xvhwx3fj3jny6cjzxfzl1x0317q8wa0c7w5i";
|
||||||
};
|
};
|
||||||
requirejs =
|
requirejs =
|
||||||
fetchzip {
|
fetchzip {
|
||||||
url = "https://registry.npmjs.org/requirejs/-/requirejs-2.3.4.tgz";
|
url = "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz";
|
||||||
sha256 = "0q6mkj0iv341kks06dya6lfs2kdw0n6vc7n4a7aa3ia530fk9vja";
|
sha256 = "165hkli3qcd59cjqvli9r5f92i0h7czkmhcg1cgwamw2d0b7xibz";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jupyterhub";
|
pname = "jupyterhub";
|
||||||
version = "1.1.0";
|
version = "1.3.0";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1mqknz0rxqzx4nc57vscvfh2d4znzlzpy83ancqxdaq3b8i70al5";
|
sha256 = "13pf6qhimpaxj20871ff5rvwwan59320cdhhrn9cfh6314971zq5";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Most of this only applies when building from source (e.g. js/css assets are
|
# Most of this only applies when building from source (e.g. js/css assets are
|
||||||
@ -86,12 +92,7 @@ buildPythonPackage rec {
|
|||||||
"'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'"
|
"'${nodePackages.configurable-http-proxy}/bin/configurable-http-proxy'"
|
||||||
|
|
||||||
substituteInPlace setup.py --replace \
|
substituteInPlace setup.py --replace \
|
||||||
"'npm', 'run', 'lessc', '--'" \
|
"'npm'" "'true'"
|
||||||
"'${nodePackages.less}/bin/lessc'"
|
|
||||||
|
|
||||||
substituteInPlace setup.py --replace \
|
|
||||||
"'npm', 'install', '--progress=false'" \
|
|
||||||
"'true'"
|
|
||||||
|
|
||||||
declare -A deps
|
declare -A deps
|
||||||
deps[bootstrap]=${bootstrap}
|
deps[bootstrap]=${bootstrap}
|
||||||
@ -109,14 +110,45 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
alembic ipython jinja2 pamela python-oauth2 requests sqlalchemy tornado
|
# https://github.com/jupyterhub/jupyterhub/blob/master/requirements.txt
|
||||||
traitlets prometheus_client async_generator notebook certipy oauthlib
|
alembic
|
||||||
|
async_generator
|
||||||
|
certipy
|
||||||
|
dateutil
|
||||||
|
entrypoints
|
||||||
|
jinja2
|
||||||
jupyter-telemetry
|
jupyter-telemetry
|
||||||
|
oauthlib
|
||||||
|
pamela
|
||||||
|
prometheus_client
|
||||||
|
requests
|
||||||
|
sqlalchemy
|
||||||
|
tornado
|
||||||
|
traitlets
|
||||||
];
|
];
|
||||||
|
|
||||||
# Disable tests because they take an excessive amount of time to complete.
|
preCheck = ''
|
||||||
doCheck = false;
|
substituteInPlace jupyterhub/tests/test_spawner.py --replace \
|
||||||
|
"'jupyterhub-singleuser'" "'$out/bin/jupyterhub-singleuser'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
# https://github.com/jupyterhub/jupyterhub/blob/master/dev-requirements.txt
|
||||||
|
beautifulsoup4
|
||||||
|
cryptography
|
||||||
|
notebook
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
virtualenv
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tries to install older versions through pip
|
||||||
|
"test_upgrade"
|
||||||
|
# Testcase fails to find requests import
|
||||||
|
"test_external_service"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Serves multiple Jupyter notebook instances";
|
description = "Serves multiple Jupyter notebook instances";
|
||||||
|
@ -1,41 +1,42 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, jupyterhub
|
|
||||||
, globus-sdk
|
|
||||||
, mwoauth
|
|
||||||
, codecov
|
|
||||||
, flake8
|
|
||||||
, pyjwt
|
|
||||||
, pytest
|
|
||||||
, pytestcov
|
|
||||||
, pytest-tornado
|
|
||||||
, requests-mock
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, google_api_python_client
|
||||||
|
, google-auth-oauthlib
|
||||||
|
, jupyterhub
|
||||||
|
, mwoauth
|
||||||
|
, pyjwt
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "oauthenticator";
|
pname = "oauthenticator";
|
||||||
version = "0.12.3";
|
version = "0.13.0";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "f86e18e954ae37796ee149fe01ab0be0707d9e0415d62336ba3447e7b4383461";
|
sha256 = "5202adcd96ddbbccbc267da02f2d14e977300c81291aaa77be4fd9f2e27cfa37";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
py.test oauthenticator/tests
|
jupyterhub
|
||||||
'';
|
];
|
||||||
|
|
||||||
# No tests in archive
|
pytestFlagsArray = [ "oauthenticator/tests" ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
checkInputs = [ globus-sdk mwoauth codecov flake8 pytest
|
checkInputs = [
|
||||||
pytestcov pytest-tornado requests-mock pyjwt ];
|
google_api_python_client
|
||||||
|
google-auth-oauthlib
|
||||||
propagatedBuildInputs = [ jupyterhub ];
|
mwoauth
|
||||||
|
pyjwt
|
||||||
disabled = pythonOlder "3.4";
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
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.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user