python3{11,12}Packages.jupyter-contrib-nbextensions: drop

This is marked as broken already because of a Jupyter Notebook upgrade,
and the upstream repository hasn’t been touched in two years,
so there’s little reason to try doing anything about its nose
dependency. Other distributions have already dropped this package;
there’s a patch from an openSUSE maintainer to migrate it off nose,
but they don’t seem to package it any more.
This commit is contained in:
Emily
2024-09-22 21:29:03 +01:00
parent 14b0b5a45e
commit 627e241f5c
3 changed files with 1 additions and 61 deletions
@@ -1,59 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
ipython-genutils,
jupyter-contrib-core,
jupyter-highlight-selected-word,
jupyter-nbextensions-configurator,
lxml,
nose,
pytestCheckHook,
notebook,
}:
buildPythonPackage rec {
pname = "jupyter-contrib-nbextensions";
version = "0.7.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ipython-contrib";
repo = "jupyter_contrib_nbextensions";
rev = "refs/tags/${version}";
hash = "sha256-1o8tBfRw6jNcKfNE7xXrQaEhx+KOv7mLOruvuMDtJ1Q=";
};
propagatedBuildInputs = [
ipython-genutils
jupyter-contrib-core
jupyter-highlight-selected-word
jupyter-nbextensions-configurator
lxml
];
nativeCheckInputs = [
nose
pytestCheckHook
];
disabledTestPaths = [
# Thoses tests fail upstream because of nbconvert being too recent
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1606
"tests/test_exporters.py"
# Requires to run jupyter which is not feasible here
"tests/test_application.py"
];
pythonImportsCheck = [ "jupyter_contrib_nbextensions" ];
meta = with lib; {
description = "Collection of various notebook extensions for Jupyter";
homepage = "https://github.com/ipython-contrib/jupyter_contrib_nbextensions";
license = licenses.bsd3;
maintainers = with maintainers; [ GaetanLepage ];
# https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1647
broken = versionAtLeast notebook.version "7";
};
}
+1
View File
@@ -278,6 +278,7 @@ mapAliases ({
jsonschema_3 = throw "jsonschema 3 is neither the latest version nor needed inside nixpkgs anymore"; # added 2023-06-28
jupyter_client = jupyter-client; # added 2021-10-15
jupyter_console = jupyter-console; # added 2023-07-31
jupyter-contrib-nbextensions = throw "jupyter-contrib-nbextensions has been removed, as it does not work with Jupyter Notebook 7"; # added 2024-09-22
jupyter_core = jupyter-core; # added 2023-01-05
jupyter_server = jupyter-server; # added 2023-01-05
jupyter-server-ydoc = jupyter-collaboration; # added 2023-07-18
-2
View File
@@ -6554,8 +6554,6 @@ self: super: with self; {
jupyter-contrib-core = callPackage ../development/python-modules/jupyter-contrib-core { };
jupyter-contrib-nbextensions = callPackage ../development/python-modules/jupyter-contrib-nbextensions { };
jupyter-console = callPackage ../development/python-modules/jupyter-console { };
jupyter-core = callPackage ../development/python-modules/jupyter-core { };