2017-06-02 15:05:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, nose
|
2017-10-23 12:53:43 +00:00
|
|
|
, glibcLocales
|
2017-06-02 15:05:29 +00:00
|
|
|
, entrypoints
|
|
|
|
, bleach
|
|
|
|
, mistune
|
|
|
|
, jinja2
|
|
|
|
, pygments
|
|
|
|
, traitlets
|
|
|
|
, testpath
|
|
|
|
, jupyter_core
|
|
|
|
, nbformat
|
|
|
|
, ipykernel
|
|
|
|
, pandocfilters
|
|
|
|
, tornado
|
|
|
|
, jupyter_client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbconvert";
|
2017-10-23 12:53:43 +00:00
|
|
|
version = "5.3.1";
|
2017-06-02 15:05:29 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-23 12:53:43 +00:00
|
|
|
sha256 = "1f9dkvpx186xjm4xab0qbph588mncp4vqk3fmxrsnqs43mks9c8j";
|
2017-06-02 15:05:29 +00:00
|
|
|
};
|
|
|
|
|
2017-10-23 12:53:43 +00:00
|
|
|
checkInputs = [ nose pytest glibcLocales ];
|
2017-06-02 15:05:29 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
entrypoints bleach mistune jinja2 pygments traitlets testpath
|
|
|
|
jupyter_core nbformat ipykernel pandocfilters tornado jupyter_client
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2017-10-23 12:53:43 +00:00
|
|
|
mkdir tmp
|
2017-11-10 16:49:18 +00:00
|
|
|
LC_ALL=en_US.UTF-8 HOME=`realpath tmp` py.test -v
|
2017-06-02 15:05:29 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Converting Jupyter Notebooks";
|
|
|
|
homepage = http://jupyter.org/;
|
|
|
|
license = lib.licenses.bsd3;
|
2017-10-23 12:53:43 +00:00
|
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
2017-06-02 15:05:29 +00:00
|
|
|
};
|
|
|
|
}
|