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