python3Packages.nbformat: 4.4.0 -> 5.0.4
This commit is contained in:
parent
9afa7cce9c
commit
e36dbf30b0
3 changed files with 46 additions and 3 deletions
41
pkgs/development/python-modules/nbformat/2.nix
Normal file
41
pkgs/development/python-modules/nbformat/2.nix
Normal file
|
@ -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; [ fridh globin ];
|
||||
};
|
||||
}
|
|
@ -12,11 +12,11 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "nbformat";
|
||||
version = "4.4.0";
|
||||
version = "5.0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402";
|
||||
sha256 = "562de41fc7f4f481b79ab5d683279bf3a168858268d4387b489b7b02be0b324a";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.utf8";
|
||||
|
|
|
@ -4316,7 +4316,9 @@ in {
|
|||
|
||||
nbconvert = callPackage ../development/python-modules/nbconvert { };
|
||||
|
||||
nbformat = callPackage ../development/python-modules/nbformat { };
|
||||
nbformat = if isPy3k then
|
||||
callPackage ../development/python-modules/nbformat { }
|
||||
else callPackage ../development/python-modules/nbformat/2.nix { };
|
||||
|
||||
nbmerge = callPackage ../development/python-modules/nbmerge { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue