1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/development/python-modules/nbconvert/default.nix

52 lines
975 B
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
, nbconvert
, ipykernel
, pandocfilters
, tornado
, jupyter_client
}:
buildPythonPackage rec {
pname = "nbconvert";
version = "5.3.1";
2017-06-02 16:05:29 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1f9dkvpx186xjm4xab0qbph588mncp4vqk3fmxrsnqs43mks9c8j";
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
];
checkPhase = ''
mkdir tmp
LC_ALL=en_US.UTF-8 HOME=`realpath tmp` py.test -v
2017-06-02 16:05:29 +01:00
'';
meta = {
description = "Converting Jupyter Notebooks";
homepage = http://jupyter.org/;
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh globin ];
2017-06-02 16:05:29 +01:00
};
}