python3Packages.jupyterlab_server: fix build

This commit is contained in:
Martin Weinelt 2022-07-24 15:31:35 +02:00
parent 6d0715f340
commit dde3e1ae3b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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; {