3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/nbconvert/default.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2017-06-02 16:05:29 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, nose
, glibcLocales
2017-06-02 16:05:29 +01:00
, entrypoints
, bleach
, mistune
, jinja2
, pygments
, traitlets
, testpath
, jupyter_core
, nbformat
, ipykernel
, pandocfilters
, tornado
, jupyter_client
, defusedxml
2017-06-02 16:05:29 +01:00
}:
buildPythonPackage rec {
pname = "nbconvert";
2019-10-16 16:00:51 +01:00
version = "5.6.0";
2017-06-02 16:05:29 +01:00
src = fetchPypi {
inherit pname version;
2019-10-16 16:00:51 +01:00
sha256 = "427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695";
2017-06-02 16:05:29 +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
defusedxml
2017-06-02 16:05:29 +01: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 = ''
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
'';
2019-09-14 20:17:42 +01:00
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
2017-06-02 16:05:29 +01:00
meta = {
description = "Converting Jupyter Notebooks";
homepage = https://jupyter.org/;
2017-06-02 16:05:29 +01:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
2017-06-02 16:05:29 +01:00
};
}