2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
54 lines
958 B
Nix
54 lines
958 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, hatchling
|
|
, hatch-nodejs-version
|
|
, fastjsonschema
|
|
, jsonschema
|
|
, jupyter-core
|
|
, traitlets
|
|
, pep440
|
|
, pytestCheckHook
|
|
, testpath
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbformat";
|
|
version = "5.9.2";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-X5i1uhmX3/F1534MF9XBCpbq7Sy9HeNTPR/DXV4REZI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
hatch-nodejs-version
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
fastjsonschema
|
|
jsonschema
|
|
jupyter-core
|
|
traitlets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pep440
|
|
pytestCheckHook
|
|
testpath
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|