Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 94 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, buildPythonPackage, fetchPypi, pythonOlder, hatchling, babel, importlib-metadata, jinja2, json5, jsonschema, jupyter-server, packaging, requests, openapi-core, pytest-jupyter, pytestCheckHook, requests-mock, ruamel-yaml, strict-rfc3339,}:
buildPythonPackage rec { pname = "jupyterlab-server"; version = "2.27.3"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { pname = "jupyterlab_server"; inherit version; hash = "sha256-6zbKylnnRHGYjwriXHeUVhC4h/d3JVqiH4Bl3vnlHtQ="; };
postPatch = '' sed -i "/timeout/d" pyproject.toml '';
build-system = [ hatchling ];
dependencies = [ babel jinja2 json5 jsonschema jupyter-server packaging requests ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
optional-dependencies = { openapi = [ openapi-core ruamel-yaml ]; };
nativeCheckInputs = [ pytest-jupyter pytestCheckHook requests-mock strict-rfc3339 ] ++ 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 = { 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/v${version}/CHANGELOG.md"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };}