2020-02-06 09:22:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, glibcLocales
|
|
|
|
, ipython_genutils
|
|
|
|
, traitlets
|
|
|
|
, testpath
|
|
|
|
, jsonschema
|
|
|
|
, jupyter_core
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbformat";
|
2020-05-07 20:50:20 +01:00
|
|
|
version = "4.4.0";
|
2020-02-06 09:22:36 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-07 20:50:20 +01:00
|
|
|
sha256 = "f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402";
|
2020-02-06 09:22:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL="en_US.utf8";
|
|
|
|
|
|
|
|
checkInputs = [ pytest glibcLocales ];
|
|
|
|
propagatedBuildInputs = [ ipython_genutils traitlets testpath jsonschema jupyter_core ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
mkdir tmp
|
|
|
|
export HOME=tmp
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Jupyter Notebook format";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://jupyter.org/";
|
2020-02-06 09:22:36 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-06-05 17:43:38 +01:00
|
|
|
maintainers = with lib.maintainers; [ globin ];
|
2020-02-06 09:22:36 +00:00
|
|
|
};
|
|
|
|
}
|