Merge pull request #188608 from anthonyroussel/jupyterlab_server

This commit is contained in:
Sandro 2022-09-05 16:06:38 +02:00 committed by GitHub
commit fb5ce12247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
{ stdenv
, lib
{ lib
, buildPythonPackage
, fetchPypi
, hatchling
@ -14,33 +13,31 @@
, pytest-timeout
, pytest-tornasync
, ruamel-yaml
, strict-rfc3339
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jupyterlab_server";
version = "2.15.0";
version = "2.15.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-qRxRXg55caj3w8mDS3SIV/faxQL5NgS/KDmHmR/Zh+8=";
sha256 = "sha256-MFMTlw4THFkM93u2uMp+mFkbwwQRHo0QO8kdIS6UeW8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov jupyterlab_server --cov-report term-missing --cov-report term:skip-covered" ""
# translation tests try to install additional packages into read only paths
rm -r tests/translations/
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [ requests jsonschema json5 babel jupyter_server ];
propagatedBuildInputs = [
requests
jsonschema
json5
babel
jupyter_server
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
checkInputs = [
openapi-core
@ -50,19 +47,25 @@ buildPythonPackage rec {
ruamel-yaml
];
postPatch = ''
# translation tests try to install additional packages into read only paths
rm -r tests/translations/
'';
preCheck = ''
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
# 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; {
description = "JupyterLab Server";
description = "A set of server components for JupyterLab and JupyterLab like applications";
homepage = "https://jupyter.org";
license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ];