Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 53 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, nose 6, glibcLocales 7, entrypoints 8, bleach 9, mistune 10, jinja2 11, pygments 12, traitlets 13, testpath 14, jupyter_core 15, nbformat 16, ipykernel 17, pandocfilters 18, tornado 19, jupyter_client 20, defusedxml 21}: 22 23buildPythonPackage rec { 24 pname = "nbconvert"; 25 version = "5.5.0"; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "138381baa41d83584459b5cfecfc38c800ccf1f37d9ddd0bd440783346a4c39c"; 30 }; 31 32 checkInputs = [ nose pytest glibcLocales ]; 33 34 propagatedBuildInputs = [ 35 entrypoints bleach mistune jinja2 pygments traitlets testpath 36 jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client 37 defusedxml 38 ]; 39 40 # disable preprocessor tests for ipython 7 41 # see issue https://github.com/jupyter/nbconvert/issues/898 42 checkPhase = '' 43 export LC_ALL=en_US.UTF-8 44 HOME=$(mktemp -d) py.test -v --ignore="nbconvert/preprocessors/tests/test_execute.py" 45 ''; 46 47 meta = { 48 description = "Converting Jupyter Notebooks"; 49 homepage = https://jupyter.org/; 50 license = lib.licenses.bsd3; 51 maintainers = with lib.maintainers; [ fridh ]; 52 }; 53}