mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
python3Packages.jupyterlab_server: fix build
This commit is contained in:
parent
6d0715f340
commit
dde3e1ae3b
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user