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

Merge pull request #309869 from natsukium/jupyter/update

jupyter related packages updates 2024-05-08
parents e48a4182 e2b160b1
Loading
Loading
Loading
Loading
+68 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  hatchling,
  anyio,
  httpcore,
  httpx,
  wsproto,
  pytestCheckHook,
  starlette,
  trio,
  uvicorn,
}:

buildPythonPackage rec {
  pname = "httpx-ws";
  version = "0.6.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "frankie567";
    repo = "httpx-ws";
    rev = "refs/tags/v${version}";
    hash = "sha256-eDc21FiGHi98doS4Zbubb/MVw4IjQ1q496TFHCX4xB4=";
  };

  # we don't need to use the hatch-regex-commit plugin
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'source = "regex_commit"' "" \
      --replace-fail 'commit_extra_args = ["-e"]' "" \
      --replace-fail '"hatch-regex-commit"' "" \
      --replace-fail 'addopts = "--cov=httpx_ws/ --cov-report=term-missing"' ""
  '';

  build-system = [ hatchling ];

  dependencies = [
    anyio
    httpcore
    httpx
    wsproto
  ];

  pythonImportsCheck = [ "httpx_ws" ];

  nativeCheckInputs = [
    pytestCheckHook
    starlette
    trio
    uvicorn
  ];

  disabledTestPaths = [
    # hang
    "tests/test_api.py"
  ];

  meta = with lib; {
    description = "WebSocket support for HTTPX";
    homepage = "https://github.com/frankie567/httpx-ws";
    license = licenses.mit;
  };
}
+9 −4
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, ipykernel
}:

buildPythonPackage rec {
  pname = "ipynbname";
  version = "2023.2.0.0";
  format = "setuptools";
  version = "2024.1.0.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Riu915VmJIdtxOqB+nkoRas4cOREyh9res2uo32Mnr8=";
    hash = "sha256-HTxpze6Kl4FPRWpyBOnMGVtLu0ueRcvnV3lrFiST9gY=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    ipykernel
  ];

+9 −7
Original line number Diff line number Diff line
{ lib
, isPy27
, buildPythonPackage
, fetchPypi
  # Python Inputs
, setuptools
, ipywidgets
}:

buildPythonPackage rec {
  pname = "ipyvue";
  version = "1.11.0";
  format = "setuptools";

  disabled = isPy27;
  version = "1.11.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ez2ygBvgU12FX/+qDkARlizq50rEgZYp4UH5Sx4E2QA=";
    hash = "sha256-AwgE/5GgRK0/oHrjTjlSo9IxmDdnhDSqqZrkiLp0mls=";
  };

  propagatedBuildInputs = [ ipywidgets ];
  build-system = [
    setuptools
  ];

  dependencies = [ ipywidgets ];

  doCheck = false;  # No tests in package or GitHub
  pythonImportsCheck = [ "ipyvue" ];
+4 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@

buildPythonPackage rec {
  pname = "jupyter-collaboration";
  version = "2.0.11";
  version = "2.1.0";
  pyproject = true;

  disabled = pythonOlder "3.8";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
  src = fetchPypi {
    pname = "jupyter_collaboration";
    inherit version;
    hash = "sha256-K7HN5yzadY5Sb6Sfn/K/QCzu14AcDEGHq+TSHkLhgTY=";
    hash = "sha256-rqZT4ag7W/YtbD909MfknboDzHa2Z6OOHhN/cdww4gw=";
  };

  postPatch = ''
@@ -71,6 +71,8 @@ buildPythonPackage rec {
  disabledTests = [
    # ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    "test_dirty"
    # causes a hang
    "test_rooms"
  ];

  __darwinAllowLocalNetworking = true;
+7 −6
Original line number Diff line number Diff line
@@ -14,33 +14,34 @@
, pytestCheckHook
, pythonOlder
, pyyaml
, toml
, tomli
}:

buildPythonPackage rec {
  pname = "jupytext";
  version = "1.16.1";
  version = "1.16.2";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-aMe2hoXocOgOYP2oKG+9Ymnpx03B30MW32/kbqvJTJk=";
    hash = "sha256-hifdm+y769ecxKTtRyfYnXjmBrS0ZOq3I1ezsCkCOhQ=";
  };

  nativeBuildInputs = [
  build-system = [
    hatch-jupyter-builder
    hatchling
  ];

  propagatedBuildInputs = [
  dependencies = [
    markdown-it-py
    mdit-py-plugins
    nbformat
    packaging
    pyyaml
    toml
  ] ++ lib.optionals (pythonOlder "3.11") [
    tomli
  ];

  nativeCheckInputs = [
Loading