2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-11-21 17:40:18 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
2022-11-21 17:40:18 +00:00
|
|
|
, hatchling
|
|
|
|
, hatch-nodejs-version
|
2022-08-12 12:06:08 +00:00
|
|
|
, fastjsonschema
|
2020-04-24 23:36:52 +00:00
|
|
|
, jsonschema
|
2023-01-20 10:41:00 +00:00
|
|
|
, jupyter-core
|
2022-11-21 17:40:18 +00:00
|
|
|
, traitlets
|
2022-09-30 11:47:45 +00:00
|
|
|
, pep440
|
2022-11-21 17:40:18 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, testpath
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbformat";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "5.7.3";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-SwIfyiTTp0e/TmJmlAM9eS1ZRwWCnl41sU7jNp+fZHc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
hatchling
|
|
|
|
hatch-nodejs-version
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fastjsonschema
|
|
|
|
jsonschema
|
2023-01-20 10:41:00 +00:00
|
|
|
jupyter-core
|
2022-09-30 11:47:45 +00:00
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
pep440
|
|
|
|
pytestCheckHook
|
|
|
|
testpath
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Some of the tests use localhost networking.
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Jupyter Notebook format";
|
|
|
|
homepage = "https://jupyter.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ fridh globin ];
|
|
|
|
};
|
|
|
|
}
|