2017-06-02 17:05:29 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, nose
|
2017-10-23 14:53:43 +02:00
|
|
|
, glibcLocales
|
2017-06-02 17:05:29 +02:00
|
|
|
, entrypoints
|
|
|
|
, bleach
|
|
|
|
, mistune
|
|
|
|
, jinja2
|
|
|
|
, pygments
|
|
|
|
, traitlets
|
|
|
|
, testpath
|
|
|
|
, jupyter_core
|
|
|
|
, nbformat
|
|
|
|
, ipykernel
|
|
|
|
, pandocfilters
|
|
|
|
, tornado
|
|
|
|
, jupyter_client
|
2018-11-04 03:09:19 +01:00
|
|
|
, defusedxml
|
2017-06-02 17:05:29 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbconvert";
|
2019-11-11 12:13:38 +01:00
|
|
|
version = "5.6.1";
|
2017-06-02 17:05:29 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 12:13:38 +01:00
|
|
|
sha256 = "21fb48e700b43e82ba0e3142421a659d7739b65568cc832a13976a77be16b523";
|
2017-06-02 17:05:29 +02:00
|
|
|
};
|
|
|
|
|
2017-10-23 14:53:43 +02:00
|
|
|
checkInputs = [ nose pytest glibcLocales ];
|
2017-06-02 17:05:29 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
entrypoints bleach mistune jinja2 pygments traitlets testpath
|
|
|
|
jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client
|
2018-11-04 03:09:19 +01:00
|
|
|
defusedxml
|
2017-06-02 17:05:29 +02:00
|
|
|
];
|
|
|
|
|
2018-11-04 03:09:19 +01:00
|
|
|
# disable preprocessor tests for ipython 7
|
|
|
|
# see issue https://github.com/jupyter/nbconvert/issues/898
|
2017-06-02 17:05:29 +02:00
|
|
|
checkPhase = ''
|
2018-11-04 03:09:19 +01:00
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
HOME=$(mktemp -d) py.test -v --ignore="nbconvert/preprocessors/tests/test_execute.py"
|
2017-06-02 17:05:29 +02:00
|
|
|
'';
|
|
|
|
|
2019-09-14 21:17:42 +02:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2017-06-02 17:05:29 +02:00
|
|
|
meta = {
|
|
|
|
description = "Converting Jupyter Notebooks";
|
2019-04-22 10:14:28 +02:00
|
|
|
homepage = https://jupyter.org/;
|
2017-06-02 17:05:29 +02:00
|
|
|
license = lib.licenses.bsd3;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
2017-06-02 17:05:29 +02:00
|
|
|
};
|
|
|
|
}
|