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-01-20 10:41:00 +00:00
|
|
|
version = "5.7.1";
|
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-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-OBCgEwRT7QMZcFIdIJibilkvPC5zKDqCgK40rh91s/g=";
|
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
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|