nixpkgs-suyu/pkgs/development/python-modules/nbconvert/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-02 17:05:29 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, nose
, glibcLocales
2017-06-02 17:05:29 +02:00
, entrypoints
, bleach
, mistune
, jinja2
, pygments
, traitlets
, testpath
, jupyter_core
, nbformat
, ipykernel
, pandocfilters
, tornado
, jupyter_client
, defusedxml
2017-06-02 17:05:29 +02:00
}:
buildPythonPackage rec {
pname = "nbconvert";
version = "5.4.1";
2017-06-02 17:05:29 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "302554a2e219bc0fc84f3edd3e79953f3767b46ab67626fdec16e38ba3f7efe4";
2017-06-02 17:05:29 +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
defusedxml
2017-06-02 17:05:29 +02: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 = ''
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
'';
meta = {
description = "Converting Jupyter Notebooks";
homepage = https://jupyter.org/;
2017-06-02 17:05:29 +02:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh globin ];
2017-06-02 17:05:29 +02:00
};
}