1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, glibcLocales 6, ipython_genutils 7, traitlets 8, testpath 9, jsonschema 10, jupyter_core 11}: 12 13buildPythonPackage rec { 14 pname = "nbformat"; 15 version = "5.1.3"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "b516788ad70771c6250977c1374fcca6edebe6126fd2adb5a69aa5c2356fd1c8"; 20 }; 21 22 LC_ALL="en_US.utf8"; 23 24 checkInputs = [ pytest glibcLocales ]; 25 propagatedBuildInputs = [ ipython_genutils traitlets testpath jsonschema jupyter_core ]; 26 27 preCheck = '' 28 mkdir tmp 29 export HOME=tmp 30 ''; 31 32 # Some of the tests use localhost networking. 33 __darwinAllowLocalNetworking = true; 34 35 meta = { 36 description = "The Jupyter Notebook format"; 37 homepage = "https://jupyter.org/"; 38 license = lib.licenses.bsd3; 39 maintainers = with lib.maintainers; [ fridh globin ]; 40 }; 41}