diff --git a/pkgs/development/python-modules/jupyterlab_server/default.nix b/pkgs/development/python-modules/jupyterlab_server/default.nix index 3c9636ed7524..62730df149ea 100644 --- a/pkgs/development/python-modules/jupyterlab_server/default.nix +++ b/pkgs/development/python-modules/jupyterlab_server/default.nix @@ -2,6 +2,7 @@ , lib , buildPythonPackage , fetchPypi +, hatchling , jsonschema , pythonOlder , requests @@ -10,6 +11,7 @@ , babel , jupyter_server , openapi-core +, pytest-timeout , pytest-tornasync , ruamel-yaml , strict-rfc3339 @@ -18,6 +20,7 @@ buildPythonPackage rec { pname = "jupyterlab_server"; version = "2.15.0"; + format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { @@ -33,11 +36,16 @@ buildPythonPackage rec { rm -r tests/translations/ ''; + nativeBuildInputs = [ + hatchling + ]; + propagatedBuildInputs = [ requests jsonschema pyjson5 babel jupyter_server ]; checkInputs = [ openapi-core pytestCheckHook + pytest-timeout pytest-tornasync ruamel-yaml ]; @@ -46,6 +54,11 @@ buildPythonPackage rec { 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" + ]; + __darwinAllowLocalNetworking = true; meta = with lib; {