Unverified Commit 00d3ce71 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #260593 from natsukium/ipython-genutils

python311Packages.ipython-genutils: rename from ipython_genutils
parents 6488bced 712c5943
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, pythonOlder
, fetchPypi
, ipykernel
, ipython_genutils
, ipython-genutils
, ipywidgets
, matplotlib
, numpy
@@ -25,7 +25,7 @@ buildPythonPackage rec {

  propagatedBuildInputs = [
    ipykernel
    ipython_genutils
    ipython-genutils
    ipywidgets
    matplotlib
    numpy
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, nose
, glibcLocales
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ipython_genutils";
  pname = "ipython-genutils";
  version = "0.2.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8";
    pname = "ipython_genutils";
    inherit version;
    hash = "sha256-6y4RbnXs751NIo/cZq9UJpr6JqtEYwQuM3hbiHxii6g=";
  };

  nativeCheckInputs = [ nose glibcLocales ];
  nativeBuildInputs = [
    setuptools
  ];

  checkPhase = ''
    LC_ALL="en_US.UTF-8" nosetests -v ipython_genutils/tests
  nativeCheckInputs = [
    nose
    pytestCheckHook
  ];

  preCheck = ''
    substituteInPlace ipython_genutils/tests/test_path.py \
      --replace "setUp" "setup_method" \
      --replace "tearDown" "teardown_method"
  '';

  pythonImportsCheck = [
    "ipython_genutils"
  ];

  meta = {
    description = "Vestigial utilities from IPython";
    homepage = "https://ipython.org/";
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, fetchFromGitHub
, pythonOlder
, ipython
, ipython_genutils
, ipython-genutils
, pandas
, prettytable
, pytest
@@ -29,7 +29,7 @@ buildPythonPackage rec {

  propagatedBuildInputs = [
    ipython
    ipython_genutils
    ipython-genutils
    prettytable
    sqlalchemy
    sqlparse
+2 −2
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, ipython_genutils
, ipython-genutils
, jupyter-contrib-core
, jupyter-highlight-selected-word
, jupyter-nbextensions-configurator
@@ -23,7 +23,7 @@ buildPythonPackage rec {
  };

  propagatedBuildInputs = [
    ipython_genutils
    ipython-genutils
    jupyter-contrib-core
    jupyter-highlight-selected-word
    jupyter-nbextensions-configurator
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, buildPythonPackage
, fetchPypi
, ipykernel
, ipython_genutils
, ipython-genutils
, jinja2
, jupyter-client
, jupyter-core
@@ -39,7 +39,7 @@ buildPythonPackage rec {
  propagatedBuildInputs = [
    argon2-cffi
    ipykernel
    ipython_genutils
    ipython-genutils
    jinja2
    jupyter-client
    jupyter-core
Loading