Unverified Commit 2f7722ef authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #305227 from natsukium/jupyter/update

jupyter related packages updates 2024-04-19
parents df7a15ab c02bbebf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+8 −13
Original line number Diff line number Diff line
@@ -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" ];
+4 −0
Original line number Diff line number Diff line
@@ -64,6 +64,10 @@ buildPythonPackage rec {
    export HOME=$TEMP
  '';

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

  disabledTests = [
    # ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    "test_dirty"
+2 −2
Original line number Diff line number Diff line
@@ -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 = [
+2 −2
Original line number Diff line number Diff line
@@ -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 = [
Loading