2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
hatch-nodejs-version,
|
|
|
|
fastjsonschema,
|
|
|
|
jsonschema,
|
|
|
|
jupyter-core,
|
|
|
|
traitlets,
|
|
|
|
pep440,
|
|
|
|
pytestCheckHook,
|
|
|
|
testpath,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbformat";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "5.10.4";
|
|
|
|
pyproject = true;
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-MiFosU+Tel0RNimI7KwqSVLT2OOiy+sjGVhGMSJtWzo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2022-11-21 17:40:18 +00:00
|
|
|
hatchling
|
|
|
|
hatch-nodejs-version
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2022-09-30 11:47:45 +00:00
|
|
|
fastjsonschema
|
|
|
|
jsonschema
|
2023-01-20 10:41:00 +00:00
|
|
|
jupyter-core
|
2022-09-30 11:47:45 +00:00
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nbformat" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
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 = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Jupyter Notebook format";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jupyter-trust";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://jupyter.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ globin ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|