depot/third_party/nixpkgs/pkgs/development/python-modules/nbformat/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

58 lines
1,021 B
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 = "Jupyter Notebook format";
mainProgram = "jupyter-trust";
homepage = "https://jupyter.org/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ globin ];
};
}