Merge pull request #305227 from natsukium/jupyter/update

jupyter related packages updates 2024-04-19
This commit is contained in:
OTABI Tomoya 2024-04-19 19:54:39 -07:00 committed by GitHub
commit 2f7722eff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 20 additions and 21 deletions

View File

@ -14,14 +14,14 @@
buildPythonPackage rec {
pname = "anywidget";
version = "0.9.6";
version = "0.9.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nhDPAXwcsxwrTBG1kEBj77bDXMb3j/Xckk3FENjCS5E=";
hash = "sha256-mepiQbJVtIHgzEhnjy8MjBOEMYLvlpLJ/wzMSm3+2bE=";
};
# We do not need the jupyterlab build dependency, because we do not need to

View File

@ -4,37 +4,32 @@
, pythonOlder
, hatchling
, hatch-jupyter-builder
, ipywidgets
, jupyter-ui-poll
, anywidget
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ipyniivue";
version = "1.1.0";
format = "pyproject";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kym7949VI6C+62p3IOQ2QIzWnuSBcrmySb83oqUwhjI=";
hash = "sha256-CvMSUvPyXxPexs0/0sa/xt65RFWtvmYZwGSMIQGvLkc=";
};
# We do not need the jupyterlab build dependency, because we do not need to
# We do not need the build hooks, because we do not need to
# build any JS components; these are present already in the PyPI artifact.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"jupyterlab==3.*",' ""
'';
env.HATCH_BUILD_NO_HOOKS = true;
nativeBuildInputs = [
build-system = [
hatchling
hatch-jupyter-builder
];
propagatedBuildInputs = [ ipywidgets jupyter-ui-poll ];
dependencies = [ anywidget ];
nativeCheckImports = [ pytestCheckHook ];
pythonImportsCheck = [ "ipyniivue" ];

View File

@ -64,6 +64,10 @@ buildPythonPackage rec {
export HOME=$TEMP
'';
pytestFlagsArray = [
"-Wignore::DeprecationWarning"
];
disabledTests = [
# ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
"test_dirty"

View File

@ -7,12 +7,12 @@
buildPythonPackage rec {
pname = "jupyter-lsp";
version = "2.2.4";
version = "2.2.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XlADMUk0QGU0jmiGCPPG1lTvBtmFa2dlW9e2usnuLVk=";
hash = "sha256-eTFHoFrURvgJ/VPvHNGan1JW/Qota3zpQ6mCy09UUAE=";
};
nativeBuildInputs = [

View File

@ -34,14 +34,14 @@
buildPythonPackage rec {
pname = "jupyter-server";
version = "2.13.0";
version = "2.14.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "jupyter_server";
inherit version;
hash = "sha256-yAv7BJ6iAFPD2WQcKt1ISLOAc7958XKc6h+u0y/Bx44=";
hash = "sha256-ZZFUzqUSCDQ0/XyTt/4Il696L9C53UdJKCtC6qxK5nc=";
};
nativeBuildInputs = [

View File

@ -16,14 +16,14 @@
buildPythonPackage rec {
pname = "notebook";
version = "7.1.2";
version = "7.1.3";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-78LIAEOQng+qF/zp6bN8BZwDrw7Jmk1NuEyyHZ0uk2o=";
hash = "sha256-Qfzr/0TPe7k3cYCAi8uuBmYptV2MdyLx6751ykT5z8E=";
};
postPatch = ''