1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, hatchling
6, hatch-nodejs-version
7, fastjsonschema
8, jsonschema
9, jupyter_core
10, traitlets
11, pep440
12, pytestCheckHook
13, testpath
14}:
15
16buildPythonPackage rec {
17 pname = "nbformat";
18 version = "5.7.0";
19
20 disabled = pythonOlder "3.7";
21
22 format = "pyproject";
23
24 src = fetchPypi {
25 inherit pname version;
26 sha256 = "1d4760c15c1a04269ef5caf375be8b98dd2f696e5eb9e603ec2bf091f9b0d3f3";
27 };
28
29 nativeBuildInputs = [
30 hatchling
31 hatch-nodejs-version
32 ];
33
34 propagatedBuildInputs = [
35 fastjsonschema
36 jsonschema
37 jupyter_core
38 traitlets
39 ];
40
41 checkInputs = [
42 pep440
43 pytestCheckHook
44 testpath
45 ];
46
47 # Some of the tests use localhost networking.
48 __darwinAllowLocalNetworking = true;
49
50 meta = {
51 description = "The Jupyter Notebook format";
52 homepage = "https://jupyter.org/";
53 license = lib.licenses.bsd3;
54 maintainers = with lib.maintainers; [ fridh globin ];
55 };
56}