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.9.2"; 19 format = "pyproject"; 20 disabled = pythonOlder "3.8"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-X5i1uhmX3/F1534MF9XBCpbq7Sy9HeNTPR/DXV4REZI="; 25 }; 26 27 nativeBuildInputs = [ 28 hatchling 29 hatch-nodejs-version 30 ]; 31 32 propagatedBuildInputs = [ 33 fastjsonschema 34 jsonschema 35 jupyter-core 36 traitlets 37 ]; 38 39 nativeCheckInputs = [ 40 pep440 41 pytestCheckHook 42 testpath 43 ]; 44 45 # Some of the tests use localhost networking. 46 __darwinAllowLocalNetworking = true; 47 48 meta = { 49 description = "The Jupyter Notebook format"; 50 homepage = "https://jupyter.org/"; 51 license = lib.licenses.bsd3; 52 maintainers = with lib.maintainers; [ fridh globin ]; 53 }; 54}