Loading pkgs/development/python-modules/bokeh/default.nix +8 −3 Original line number Diff line number Diff line Loading @@ -28,16 +28,19 @@ , icalendar , pandas , pythonImportsCheckHook , contourpy , xyzservices }: buildPythonPackage rec { pname = "bokeh"; # update together with panel which is not straightforward version = "2.4.3"; version = "3.0.3"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM="; hash= "sha256-HChHHvXmEQulvtUTE3/SYFTrxEVLx2hlDq7vxTuJioo="; }; patches = [ Loading Loading @@ -70,10 +73,10 @@ buildPythonPackage rec { requests nbconvert icalendar pandas ]; propagatedBuildInputs = [ contourpy pillow jinja2 python-dateutil Loading @@ -81,8 +84,10 @@ buildPythonPackage rec { pyyaml tornado numpy pandas packaging typing-extensions xyzservices ] ++ lib.optionals ( isPy27 ) [ futures Loading pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch +7 −7 Original line number Diff line number Diff line diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py index a752aad7d..8af05ff63 100644 --- a/bokeh/util/compiler.py +++ b/bokeh/util/compiler.py @@ -442,8 +442,8 @@ def _detect_nodejs(): raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version + diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py index 9af8691..4b93543 100644 --- a/src/bokeh/util/compiler.py +++ b/src/bokeh/util/compiler.py @@ -415,8 +415,8 @@ def _detect_nodejs() -> str: raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' + '("conda install nodejs" or follow https://nodejs.org/en/download/)') -_nodejs = None Loading @@ -11,5 +11,5 @@ index a752aad7d..8af05ff63 100644 +_nodejs = "@node_bin@" +_npmjs = "@npm_bin@" def _nodejs_path(): def _nodejs_path() -> str: global _nodejs Loading
pkgs/development/python-modules/bokeh/default.nix +8 −3 Original line number Diff line number Diff line Loading @@ -28,16 +28,19 @@ , icalendar , pandas , pythonImportsCheckHook , contourpy , xyzservices }: buildPythonPackage rec { pname = "bokeh"; # update together with panel which is not straightforward version = "2.4.3"; version = "3.0.3"; format = "setuptools"; src = fetchPypi { inherit pname version; sha256 = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM="; hash= "sha256-HChHHvXmEQulvtUTE3/SYFTrxEVLx2hlDq7vxTuJioo="; }; patches = [ Loading Loading @@ -70,10 +73,10 @@ buildPythonPackage rec { requests nbconvert icalendar pandas ]; propagatedBuildInputs = [ contourpy pillow jinja2 python-dateutil Loading @@ -81,8 +84,10 @@ buildPythonPackage rec { pyyaml tornado numpy pandas packaging typing-extensions xyzservices ] ++ lib.optionals ( isPy27 ) [ futures Loading
pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch +7 −7 Original line number Diff line number Diff line diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py index a752aad7d..8af05ff63 100644 --- a/bokeh/util/compiler.py +++ b/bokeh/util/compiler.py @@ -442,8 +442,8 @@ def _detect_nodejs(): raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version + diff --git a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py index 9af8691..4b93543 100644 --- a/src/bokeh/util/compiler.py +++ b/src/bokeh/util/compiler.py @@ -415,8 +415,8 @@ def _detect_nodejs() -> str: raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' + '("conda install nodejs" or follow https://nodejs.org/en/download/)') -_nodejs = None Loading @@ -11,5 +11,5 @@ index a752aad7d..8af05ff63 100644 +_nodejs = "@node_bin@" +_npmjs = "@npm_bin@" def _nodejs_path(): def _nodejs_path() -> str: global _nodejs