fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
hatchling,
|
|
hatch-nodejs-version,
|
|
fastjsonschema,
|
|
jsonschema,
|
|
jupyter-core,
|
|
traitlets,
|
|
pep440,
|
|
pytestCheckHook,
|
|
testpath,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbformat";
|
|
version = "5.10.4";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-MiFosU+Tel0RNimI7KwqSVLT2OOiy+sjGVhGMSJtWzo=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-nodejs-version
|
|
];
|
|
|
|
dependencies = [
|
|
fastjsonschema
|
|
jsonschema
|
|
jupyter-core
|
|
traitlets
|
|
];
|
|
|
|
pythonImportsCheck = [ "nbformat" ];
|
|
|
|
nativeCheckInputs = [
|
|
pep440
|
|
pytestCheckHook
|
|
testpath
|
|
];
|
|
|
|
# Some of the tests use localhost networking.
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "The Jupyter Notebook format";
|
|
mainProgram = "jupyter-trust";
|
|
homepage = "https://jupyter.org/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ globin ];
|
|
};
|
|
}
|