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

Merge pull request #282199 from natsukium/jupyter/update

jupyter related packages updates 2024-01-20
parents f8d3e49f ef37bad1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@

let
  pname = "comm";
  version = "0.2.0";
  version = "0.2.1";
in
buildPythonPackage {
  inherit pname version;
@@ -18,7 +18,7 @@ buildPythonPackage {
    owner = "ipython";
    repo = "comm";
    rev = "refs/tags/v${version}";
    hash = "sha256-bErZNTm0spO0A/Lc8kq5u7sB0FMXm/WMWtFbCNGJVXE=";
    hash = "sha256-iyO3q9E2lYU1rMYTnsa+ZJYh+Hq72LEvE9ynebFIBUk=";
  };

  nativeBuildInputs = [
+2 −2
Original line number Diff line number Diff line
@@ -22,14 +22,14 @@

buildPythonPackage rec {
  pname = "ipykernel";
  version = "6.28.0";
  version = "6.29.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-acEUA9Jt5p3wIiWRb5FrN+pLmvQX2gqMgn+EMo2I5fM=";
    hash = "sha256-td0wE8q3szDfcSiRyWzRq4aMJ6cVnmBvdiAV6b+M6z8=";
  };

  # debugpy is optional, see https://github.com/ipython/ipykernel/pull/767
+12 −24
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, pythonOlder
, setuptools
, ipython
, ipython-genutils
, pandas
, prettytable
, pytest
, sqlalchemy
, sqlparse
}:
buildPythonPackage rec {
  pname = "ipython-sql";
  version = "0.4.0";
  format = "setuptools";
  version = "0.5.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "catherinedevlin";
    repo = "ipython-sql";
    rev = "117764caf099d80100ed4b09fc004b55eed6f121";
    hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA=";
  src = fetchPypi {
    inherit pname version;
    hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4=";
  };

  postPatch = ''
    substituteInPlace setup.py --replace 'prettytable<1' prettytable
  '';
  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    ipython
@@ -36,17 +33,8 @@ buildPythonPackage rec {
    sqlparse
  ];

  nativeCheckInputs = [ ipython pandas pytest ];

  checkPhase = ''
    runHook preCheck

    # running with ipython is required because the tests use objects available
    # only inside of ipython, for example the global `get_ipython()` function
    ipython -c 'import pytest; pytest.main()'

    runHook postCheck
  '';
  # pypi tarball has no tests
  doCheck = false;

  pythonImportsCheck = [ "sql" ];

+2 −2
Original line number Diff line number Diff line
@@ -7,12 +7,12 @@

buildPythonPackage rec {
  pname = "jupyter-lsp";
  version = "2.2.1";
  version = "2.2.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-sX+rbXD+g8iJawz/WSN2QAOCR8GWBWtDaEoJArap4Ps=";
    hash = "sha256-JW0kYgVCrku6BKUPwfb/4ggJOgfY5pf+oKjRuMobfls=";
  };

  nativeBuildInputs = [
+2 −2
Original line number Diff line number Diff line
@@ -34,14 +34,14 @@

buildPythonPackage rec {
  pname = "jupyter-server";
  version = "2.12.4";
  version = "2.12.5";
  pyproject = true;
  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "jupyter_server";
    inherit version;
    hash = "sha256-QfSh5rkSzCSnxsaUhRs309hBKxgPQ9cjFf5CLLK4XMI=";
    hash = "sha256-DttibJS6oigJvhMj+XcM8cAKlSsXCXWS5A0D5qOVFok=";
  };

  nativeBuildInputs = [
Loading