d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
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.1";
|
|
format = "pyproject";
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-On9S0EBjnL2KOJAhjIsP+5MhFYjFdEbJAJXjK6WIG10=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|