diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/nbformat')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/nbformat/2.nix | 41 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/nbformat/default.nix | 41 |
2 files changed, 82 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/nbformat/2.nix b/nixpkgs/pkgs/development/python-modules/nbformat/2.nix new file mode 100644 index 000000000000..06d02520b20d --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/nbformat/2.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, glibcLocales +, ipython_genutils +, traitlets +, testpath +, jsonschema +, jupyter_core +}: + +buildPythonPackage rec { + pname = "nbformat"; + version = "4.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402"; + }; + + LC_ALL="en_US.utf8"; + + checkInputs = [ pytest glibcLocales ]; + propagatedBuildInputs = [ ipython_genutils traitlets testpath jsonschema jupyter_core ]; + + preCheck = '' + mkdir tmp + export HOME=tmp + ''; + + # Some of the tests use localhost networking. + __darwinAllowLocalNetworking = true; + + meta = { + description = "The Jupyter Notebook format"; + homepage = "https://jupyter.org/"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ globin ]; + }; +} diff --git a/nixpkgs/pkgs/development/python-modules/nbformat/default.nix b/nixpkgs/pkgs/development/python-modules/nbformat/default.nix new file mode 100644 index 000000000000..2f8c57e00338 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/nbformat/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, glibcLocales +, ipython_genutils +, traitlets +, testpath +, jsonschema +, jupyter_core +}: + +buildPythonPackage rec { + pname = "nbformat"; + version = "5.0.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "049af048ed76b95c3c44043620c17e56bc001329e07f83fec4f177f0e3d7b757"; + }; + + LC_ALL="en_US.utf8"; + + checkInputs = [ pytest glibcLocales ]; + propagatedBuildInputs = [ ipython_genutils traitlets testpath jsonschema jupyter_core ]; + + preCheck = '' + mkdir tmp + export HOME=tmp + ''; + + # Some of the tests use localhost networking. + __darwinAllowLocalNetworking = true; + + meta = { + description = "The Jupyter Notebook format"; + homepage = "https://jupyter.org/"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ fridh globin ]; + }; +} |