From d2ef1f35100fa579d6dd7eb368818d96390b29ac Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 18 Apr 2026 07:39:09 +0000 Subject: [PATCH] python3Packages.jupyterlab-server: cleanup --- .../jupyterlab-server/default.nix | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/jupyterlab-server/default.nix b/pkgs/development/python-modules/jupyterlab-server/default.nix index ea4c2b9146b6..b091c9a92abf 100644 --- a/pkgs/development/python-modules/jupyterlab-server/default.nix +++ b/pkgs/development/python-modules/jupyterlab-server/default.nix @@ -2,7 +2,11 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system hatchling, + + # dependencies babel, jinja2, json5, @@ -10,12 +14,18 @@ jupyter-server, packaging, requests, + + # optional-dependencies openapi-core, + ruamel-yaml, + + # tests pytest-jupyter, + pytest-timeout, pytestCheckHook, requests-mock, - ruamel-yaml, strict-rfc3339, + writableTmpDirAsHomeHook, }: buildPythonPackage (finalAttrs: { @@ -35,11 +45,9 @@ buildPythonPackage (finalAttrs: { ./fix-openapi-core-compat.patch ]; - postPatch = '' - sed -i "/timeout/d" pyproject.toml - ''; - - build-system = [ hatchling ]; + build-system = [ + hatchling + ]; dependencies = [ babel @@ -58,31 +66,23 @@ buildPythonPackage (finalAttrs: { ]; }; + pythonImportsCheck = [ "jupyterlab_server" ]; + nativeCheckInputs = [ pytest-jupyter + pytest-timeout pytestCheckHook requests-mock strict-rfc3339 + writableTmpDirAsHomeHook ] ++ finalAttrs.passthru.optional-dependencies.openapi; - preCheck = '' - export HOME=$(mktemp -d) - ''; - - pytestFlags = [ - "-Wignore::DeprecationWarning" - ]; - disabledTestPaths = [ # require optional language pack packages for tests "tests/test_translation_api.py" ]; - pythonImportsCheck = [ - "jupyterlab_server" - ]; - __darwinAllowLocalNetworking = true; meta = {