2017-06-02 16:04:03 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
|
|
|
, ipython_genutils
|
|
|
|
, traitlets
|
|
|
|
, testpath
|
|
|
|
, jsonschema
|
|
|
|
, jupyter_core
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbformat";
|
2020-10-25 09:06:53 +00:00
|
|
|
version = "5.0.8";
|
2017-06-02 16:04:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:53 +00:00
|
|
|
sha256 = "f545b22138865bfbcc6b1ffe89ed5a2b8e2dc5d4fe876f2ca60d8e6f702a30f8";
|
2017-06-02 16:04:03 +01:00
|
|
|
};
|
2017-10-23 12:49:03 +01:00
|
|
|
|
|
|
|
LC_ALL="en_US.utf8";
|
2017-06-02 16:04:03 +01:00
|
|
|
|
|
|
|
checkInputs = [ pytest glibcLocales ];
|
|
|
|
propagatedBuildInputs = [ ipython_genutils traitlets testpath jsonschema jupyter_core ];
|
|
|
|
|
2017-10-23 12:49:03 +01:00
|
|
|
preCheck = ''
|
|
|
|
mkdir tmp
|
|
|
|
export HOME=tmp
|
|
|
|
'';
|
2017-06-02 16:04:03 +01:00
|
|
|
|
2019-09-14 20:15:20 +01:00
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2017-06-02 16:04:03 +01:00
|
|
|
meta = {
|
|
|
|
description = "The Jupyter Notebook format";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://jupyter.org/";
|
2017-06-02 16:04:03 +01:00
|
|
|
license = lib.licenses.bsd3;
|
2017-10-23 12:49:03 +01:00
|
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
2017-06-02 16:04:03 +01:00
|
|
|
};
|
|
|
|
}
|