Merge pull request #267010 from natsukium/jupyterlab-server

python311Packages.jupyterlab-server: 2.25.0 -> 2.25.1; rename from jupyterlab_server
This commit is contained in:
OTABI Tomoya 2023-11-13 11:43:48 +09:00 committed by GitHub
commit c78186e362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 46 deletions

View File

@ -1,91 +1,92 @@
{ lib
, buildPythonPackage
, fetchPypi
, hatchling
, jsonschema
, pythonOlder
, requests
, pytestCheckHook
, json5
, hatchling
, babel
, importlib-metadata
, jinja2
, json5
, jsonschema
, jupyter-server
, tomli
, packaging
, requests
, openapi-core
, pytest-jupyter
, pytestCheckHook
, requests-mock
, ruamel-yaml
, strict-rfc3339
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jupyterlab_server";
version = "2.25.0";
format = "pyproject";
pname = "jupyterlab-server";
version = "2.25.1";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-d8Lx8oLWEPleSW4g1b8dKncGgm37exjzN4rihw0nL7c=";
pname = "jupyterlab_server";
inherit version;
hash = "sha256-ZJEoOwAAaY6uGjjEhQeTBWDfz3RhrqABU2hpiqs03Zw=";
};
postPatch = ''
sed -i "/timeout/d" pyproject.toml
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
requests
jsonschema
json5
babel
jinja2
json5
jsonschema
jupyter-server
tomli
packaging
requests
] ++ lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
nativeCheckInputs = [
openapi-core
pytestCheckHook
pytest-jupyter
requests-mock
ruamel-yaml
strict-rfc3339
];
passthru.optional-dependencies = {
openapi = [
openapi-core
ruamel-yaml
];
};
postPatch = ''
sed -i "/timeout/d" pyproject.toml
'';
nativeCheckInputs = [
pytest-jupyter
pytestCheckHook
requests-mock
strict-rfc3339
] ++ passthru.optional-dependencies.openapi;
preCheck = ''
export HOME=$(mktemp -d)
'';
pytestFlagsArray = [
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
# Use setuptools or check PEP 632 for potential alternatives.
"-W ignore::DeprecationWarning"
];
disabledTestPaths = [
"tests/test_settings_api.py"
"tests/test_themes_api.py"
# require optional language pack packages for tests
"tests/test_translation_api.py"
"tests/test_workspaces_api.py"
];
disabledTests = [
"test_get_listing"
pythonImportsCheck = [
"jupyterlab_server"
"jupyterlab_server.pytest_plugin"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "A set of server components for JupyterLab and JupyterLab like applications";
homepage = "https://jupyterlab-server.readthedocs.io/";
homepage = "https://github.com/jupyterlab/jupyterlab_server";
changelog = "https://github.com/jupyterlab/jupyterlab_server/blob/v${version}/CHANGELOG.md";
license = licenses.bsdOriginal;
license = licenses.bsd3;
maintainers = lib.teams.jupyter.members;
};
}

View File

@ -9,7 +9,7 @@
, ipykernel
, jupyter-core
, jupyter-lsp
, jupyterlab_server
, jupyterlab-server
, jupyter-server
, notebook-shim
, jinja2
@ -42,7 +42,7 @@ buildPythonPackage rec {
ipykernel
jupyter-core
jupyter-lsp
jupyterlab_server
jupyterlab-server
jupyter-server
notebook-shim
jinja2

View File

@ -7,7 +7,7 @@
, hatchling
, jupyter-server
, jupyterlab
, jupyterlab_server
, jupyterlab-server
, notebook-shim
, tornado
, pytest-jupyter
@ -40,7 +40,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
jupyter-server
jupyterlab
jupyterlab_server
jupyterlab-server
notebook-shim
tornado
];

View File

@ -214,6 +214,7 @@ mapAliases ({
jupyter_server = jupyter-server; # added 2023-01-05
jupyter-server-ydoc = jupyter-collaboration; # added 2023-07-18
jupyterlab_launcher = throw "jupyterlab_launcher has been removed as it's abandoned for over 5 years and broken"; # added 2023-11-11
jupyterlab_server = jupyterlab-server; # added 2023-11-12
Kajiki = kajiki; # added 2023-02-19
Keras = keras; # added 2021-11-25
ldap = python-ldap; # added 2022-09-16

View File

@ -5829,7 +5829,7 @@ self: super: with self; {
jupyterlab-pygments = callPackage ../development/python-modules/jupyterlab-pygments { };
jupyterlab_server = callPackage ../development/python-modules/jupyterlab_server { };
jupyterlab-server = callPackage ../development/python-modules/jupyterlab-server { };
jupyterlab-widgets = callPackage ../development/python-modules/jupyterlab-widgets { };