2017-06-02 16:05:29 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, nose
|
2017-10-23 13:53:43 +01:00
|
|
|
, glibcLocales
|
2017-06-02 16:05:29 +01:00
|
|
|
, entrypoints
|
|
|
|
, bleach
|
|
|
|
, mistune
|
|
|
|
, jinja2
|
|
|
|
, pygments
|
|
|
|
, traitlets
|
|
|
|
, testpath
|
|
|
|
, jupyter_core
|
|
|
|
, nbformat
|
|
|
|
, ipykernel
|
|
|
|
, pandocfilters
|
|
|
|
, tornado
|
|
|
|
, jupyter_client
|
2018-11-04 02:09:19 +00:00
|
|
|
, defusedxml
|
2017-06-02 16:05:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbconvert";
|
2018-11-04 02:09:19 +00:00
|
|
|
version = "5.4.0";
|
2017-06-02 16:05:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 02:09:19 +00:00
|
|
|
sha256 = "a8a2749f972592aa9250db975304af6b7337f32337e523a2c995cc9e12c07807";
|
2017-06-02 16:05:29 +01:00
|
|
|
};
|
|
|
|
|
2017-10-23 13:53:43 +01:00
|
|
|
checkInputs = [ nose pytest glibcLocales ];
|
2017-06-02 16:05:29 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
entrypoints bleach mistune jinja2 pygments traitlets testpath
|
|
|
|
jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client
|
2018-11-04 02:09:19 +00:00
|
|
|
defusedxml
|
2017-06-02 16:05:29 +01:00
|
|
|
];
|
|
|
|
|
2018-11-04 02:09:19 +00:00
|
|
|
# disable preprocessor tests for ipython 7
|
|
|
|
# see issue https://github.com/jupyter/nbconvert/issues/898
|
2017-06-02 16:05:29 +01:00
|
|
|
checkPhase = ''
|
2018-11-04 02:09:19 +00:00
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
HOME=$(mktemp -d) py.test -v --ignore="nbconvert/preprocessors/tests/test_execute.py"
|
2017-06-02 16:05:29 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Converting Jupyter Notebooks";
|
|
|
|
homepage = http://jupyter.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
2017-10-23 13:53:43 +01:00
|
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
2017-06-02 16:05:29 +01:00
|
|
|
};
|
|
|
|
}
|