Skip to content

Commit

Permalink
Merge pull request NixOS#305227 from natsukium/jupyter/update
Browse files Browse the repository at this point in the history
jupyter related packages updates 2024-04-19
  • Loading branch information
natsukium authored Apr 20, 2024
2 parents df7a15a + c02bbeb commit 2f7722e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/anywidget/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 8 additions & 13 deletions pkgs/development/python-modules/ipyniivue/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ buildPythonPackage rec {
export HOME=$TEMP
'';

pytestFlagsArray = [
"-Wignore::DeprecationWarning"
];

disabledTests = [
# ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
"test_dirty"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter-lsp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/jupyter-server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/notebook/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 2f7722e

Please sign in to comment.