Merge pull request #171735 from samuela/samuela/nbconvert

python3Packages.nbconvert: clean up
main
Frederik Rietdijk 2 years ago committed by GitHub
commit 750a5146f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkgs/development/python-modules/jupyter-sphinx/default.nix
  2. 2
      pkgs/development/python-modules/jupyter_server/default.nix
  3. 65
      pkgs/development/python-modules/nbconvert/default.nix
  4. 3
      pkgs/development/python-modules/pweave/default.nix
  5. 11
      pkgs/development/python-modules/widgetsnbextension/default.nix

@ -5,6 +5,7 @@
, sphinx , sphinx
, ipywidgets , ipywidgets
, pythonOlder , pythonOlder
, nbconvert
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -17,7 +18,7 @@ buildPythonPackage rec {
sha256 = "37fc9408385c45326ac79ca0452fbd7ae2bf0e97842d626d2844d4830e30aaf2"; sha256 = "37fc9408385c45326ac79ca0452fbd7ae2bf0e97842d626d2844d4830e30aaf2";
}; };
propagatedBuildInputs = [ nbformat sphinx ipywidgets ]; propagatedBuildInputs = [ nbconvert nbformat sphinx ipywidgets ];
doCheck = false; doCheck = false;

@ -10,6 +10,7 @@
, jinja2 , jinja2
, tornado , tornado
, pyzmq , pyzmq
, ipykernel
, ipython_genutils , ipython_genutils
, traitlets , traitlets
, jupyter_core , jupyter_core
@ -62,6 +63,7 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
ipykernel
pytestCheckHook pytestCheckHook
pytest-tornasync pytest-tornasync
requests requests

@ -1,25 +1,19 @@
{ lib { beautifulsoup4
, bleach
, buildPythonPackage , buildPythonPackage
, defusedxml
, fetchPypi , fetchPypi
, pytestCheckHook , ipywidgets
, glibcLocales
, entrypoints
, bleach
, mistune
, nbclient
, jinja2 , jinja2
, pygments
, traitlets
, jupyter_core
, jupyterlab-pygments , jupyterlab-pygments
, nbformat , lib
, ipykernel , markupsafe
, mistune
, nbclient
, pandocfilters , pandocfilters
, tornado , pyppeteer
, jupyter-client , pytestCheckHook
, defusedxml
, tinycss2 , tinycss2
, beautifulsoup4
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -42,37 +36,38 @@ buildPythonPackage rec {
substituteAllInPlace ./nbconvert/exporters/templateexporter.py substituteAllInPlace ./nbconvert/exporters/templateexporter.py
''; '';
checkInputs = [ pytestCheckHook glibcLocales ];
propagatedBuildInputs = [ propagatedBuildInputs = [
entrypoints bleach mistune jinja2 pygments traitlets beautifulsoup4
jupyter_core nbformat ipykernel pandocfilters tornado jupyter-client bleach
defusedxml tinycss2 beautifulsoup4 defusedxml
nbclient jinja2
jupyterlab-pygments jupyterlab-pygments
markupsafe
mistune
nbclient
pandocfilters
tinycss2
]; ];
# disable preprocessor tests for ipython 7
# see issue https://github.com/jupyter/nbconvert/issues/898
preCheck = '' preCheck = ''
export LC_ALL=en_US.UTF-8 export HOME=$(mktemp -d)
HOME=$(mktemp -d)
''; '';
pytestFlagsArray = [ checkInputs = [
"--ignore=nbconvert/preprocessors/tests/test_execute.py" ipywidgets
# can't resolve template paths within sandbox pyppeteer
"--ignore=nbconvert/tests/base.py" pytestCheckHook
"--ignore=nbconvert/tests/test_nbconvertapp.py"
]; ];
pytestFlagsArray = [
# DeprecationWarning: Support for bleach <5 will be removed in a future version of nbconvert
"-W ignore::DeprecationWarning"
];
disabledTests = [ disabledTests = [
# Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution)
"test_export" "test_export"
"test_webpdf_without_chromium" "test_webpdf_with_chromium"
#"test_cell_tag_output"
#"test_convert_from_stdin"
#"test_convert_full_qualified_name"
]; ];
# Some of the tests use localhost networking. # Some of the tests use localhost networking.

@ -7,6 +7,7 @@
, nbconvert , nbconvert
, markdown , markdown
, isPy3k , isPy3k
, ipykernel
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -21,7 +22,7 @@ buildPythonPackage rec {
disabled = !isPy3k; disabled = !isPy3k;
buildInputs = [ mock pkgs.glibcLocales ]; buildInputs = [ mock pkgs.glibcLocales ];
propagatedBuildInputs = [ matplotlib nbconvert markdown ]; propagatedBuildInputs = [ ipykernel matplotlib nbconvert markdown ];
# fails due to trying to run CSS as test # fails due to trying to run CSS as test
doCheck = false; doCheck = false;

@ -8,13 +8,20 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "widgetsnbextension"; pname = "widgetsnbextension";
version = "3.6.0"; version = "3.6.0";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA="; hash = "sha256-6Ep6n8ubrz1XEG4YSnOJqPjrk1v3QaXrnWCqGMwCmoA=";
}; };
propagatedBuildInputs = [ notebook ]; # setup.py claims to require notebook, but the source doesn't have any imports
# in it.
postPatch = ''
substituteInPlace setup.py --replace "'notebook>=4.4.1'," ""
'';
propagatedBuildInputs = [ ];
# No tests in archive # No tests in archive
doCheck = false; doCheck = false;

Loading…
Cancel
Save