nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 82 lines 1.6 kB view raw
1{ beautifulsoup4 2, bleach 3, buildPythonPackage 4, defusedxml 5, fetchPypi 6, ipywidgets 7, jinja2 8, jupyterlab-pygments 9, lib 10, markupsafe 11, mistune 12, nbclient 13, pandocfilters 14, pyppeteer 15, pytestCheckHook 16, tinycss2 17}: 18 19buildPythonPackage rec { 20 pname = "nbconvert"; 21 version = "6.5.0"; 22 format = "setuptools"; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-Ij5G4nq+hZa4rtVDAfrbukM7f/6oGWpo/Xsf9Qnu6Z0="; 27 }; 28 29 # Add $out/share/jupyter to the list of paths that are used to search for 30 # various exporter templates 31 patches = [ 32 ./templates.patch 33 ]; 34 35 postPatch = '' 36 substituteAllInPlace ./nbconvert/exporters/templateexporter.py 37 ''; 38 39 propagatedBuildInputs = [ 40 beautifulsoup4 41 bleach 42 defusedxml 43 jinja2 44 jupyterlab-pygments 45 markupsafe 46 mistune 47 nbclient 48 pandocfilters 49 tinycss2 50 ]; 51 52 preCheck = '' 53 export HOME=$(mktemp -d) 54 ''; 55 56 checkInputs = [ 57 ipywidgets 58 pyppeteer 59 pytestCheckHook 60 ]; 61 62 pytestFlagsArray = [ 63 # DeprecationWarning: Support for bleach <5 will be removed in a future version of nbconvert 64 "-W ignore::DeprecationWarning" 65 ]; 66 67 disabledTests = [ 68 # Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution) 69 "test_export" 70 "test_webpdf_with_chromium" 71 ]; 72 73 # Some of the tests use localhost networking. 74 __darwinAllowLocalNetworking = true; 75 76 meta = { 77 description = "Converting Jupyter Notebooks"; 78 homepage = "https://jupyter.org/"; 79 license = lib.licenses.bsd3; 80 maintainers = with lib.maintainers; [ fridh ]; 81 }; 82}