Something went wrong. Try again.
lol
Something went wrong. Try again.
1.8 kB · 95 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies babel, jinja2, json5, jsonschema, jupyter-server, packaging, requests,
# optional-dependencies openapi-core, ruamel-yaml,
# tests pytest-jupyter, pytest-timeout, pytestCheckHook, requests-mock, strict-rfc3339, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "jupyterlab-server"; version = "2.28.0"; pyproject = true;
src = fetchFromGitHub { owner = "jupyterlab"; repo = "jupyterlab_server"; tag = "v${finalAttrs.version}"; hash = "sha256-/h25HBKt6maaxuZRK+VMVA0AqTZhQkDnGVDgBisQcCw="; };
patches = [ # oopenapi-core changed their API, which breaks jupyterlab-server ./fix-openapi-core-compat.patch ];
build-system = [ hatchling ];
dependencies = [ babel jinja2 json5 jsonschema jupyter-server packaging requests ];
optional-dependencies = { openapi = [ openapi-core ruamel-yaml ]; };
pythonImportsCheck = [ "jupyterlab_server" ];
nativeCheckInputs = [ pytest-jupyter pytest-timeout pytestCheckHook requests-mock strict-rfc3339 writableTmpDirAsHomeHook ] ++ finalAttrs.passthru.optional-dependencies.openapi;
disabledTestPaths = [ # require optional language pack packages for tests "tests/test_translation_api.py" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Set of server components for JupyterLab and JupyterLab like applications"; homepage = "https://github.com/jupyterlab/jupyterlab_server"; changelog = "https://github.com/jupyterlab/jupyterlab_server/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };})