Loading pkgs/development/python-modules/bokeh/default.nix +3 −8 Original line number Diff line number Diff line Loading @@ -28,19 +28,16 @@ , icalendar , pandas , pythonImportsCheckHook , contourpy , xyzservices }: buildPythonPackage rec { pname = "bokeh"; # update together with panel which is not straightforward version = "3.0.3"; format = "setuptools"; version = "2.4.3"; src = fetchPypi { inherit pname version; hash= "sha256-HChHHvXmEQulvtUTE3/SYFTrxEVLx2hlDq7vxTuJioo="; sha256 = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM="; }; patches = [ Loading Loading @@ -73,10 +70,10 @@ buildPythonPackage rec { requests nbconvert icalendar pandas ]; propagatedBuildInputs = [ contourpy pillow jinja2 python-dateutil Loading @@ -84,10 +81,8 @@ 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/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 ' + 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 + '("conda install nodejs" or follow https://nodejs.org/en/download/)') -_nodejs = None Loading @@ -11,5 +11,5 @@ index 9af8691..4b93543 100644 +_nodejs = "@node_bin@" +_npmjs = "@npm_bin@" def _nodejs_path() -> str: def _nodejs_path(): global _nodejs pkgs/development/python-modules/panel/default.nix +26 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , pythonRelaxDepsHook , bleach , bokeh , param , pyviz-comms , markdown , pyct , testpath , requests , setuptools , tqdm , nodejs , typing-extensions }: buildPythonPackage rec { pname = "panel"; version = "0.14.2"; version = "0.14.3"; format = "wheel"; Loading @@ -23,31 +25,42 @@ buildPythonPackage rec { # tries to fetch even more artifacts src = fetchPypi { inherit pname version format; hash = "sha256-cDjrim7esGduL8IHxPpoqHB43uA78R9UMIrhNktqUdU="; hash = "sha256-XOu17oydXwfyowYUmCKF7/RC0RQ0Uf1Ixmn+VTa85Lo="; }; nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "bokeh" ]; propagatedBuildInputs = [ bleach bokeh param pyviz-comms markdown param pyct testpath pyviz-comms requests setuptools tqdm typing-extensions ]; pythonImportsCheck = [ "panel" ]; # infinite recursion in test dependencies (hvplot) doCheck = false; passthru = { inherit nodejs; # For convenience }; meta = with lib; { description = "A high level dashboarding library for python visualization libraries"; homepage = "https://pyviz.org"; homepage = "https://github.com/holoviz/panel"; changelog = "https://github.com/holoviz/panel/releases/tag/v${version}"; license = licenses.bsd3; maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ]; }; } Loading
pkgs/development/python-modules/bokeh/default.nix +3 −8 Original line number Diff line number Diff line Loading @@ -28,19 +28,16 @@ , icalendar , pandas , pythonImportsCheckHook , contourpy , xyzservices }: buildPythonPackage rec { pname = "bokeh"; # update together with panel which is not straightforward version = "3.0.3"; format = "setuptools"; version = "2.4.3"; src = fetchPypi { inherit pname version; hash= "sha256-HChHHvXmEQulvtUTE3/SYFTrxEVLx2hlDq7vxTuJioo="; sha256 = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM="; }; patches = [ Loading Loading @@ -73,10 +70,10 @@ buildPythonPackage rec { requests nbconvert icalendar pandas ]; propagatedBuildInputs = [ contourpy pillow jinja2 python-dateutil Loading @@ -84,10 +81,8 @@ 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/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 ' + 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 + '("conda install nodejs" or follow https://nodejs.org/en/download/)') -_nodejs = None Loading @@ -11,5 +11,5 @@ index 9af8691..4b93543 100644 +_nodejs = "@node_bin@" +_npmjs = "@npm_bin@" def _nodejs_path() -> str: def _nodejs_path(): global _nodejs
pkgs/development/python-modules/panel/default.nix +26 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , fetchPypi , pythonRelaxDepsHook , bleach , bokeh , param , pyviz-comms , markdown , pyct , testpath , requests , setuptools , tqdm , nodejs , typing-extensions }: buildPythonPackage rec { pname = "panel"; version = "0.14.2"; version = "0.14.3"; format = "wheel"; Loading @@ -23,31 +25,42 @@ buildPythonPackage rec { # tries to fetch even more artifacts src = fetchPypi { inherit pname version format; hash = "sha256-cDjrim7esGduL8IHxPpoqHB43uA78R9UMIrhNktqUdU="; hash = "sha256-XOu17oydXwfyowYUmCKF7/RC0RQ0Uf1Ixmn+VTa85Lo="; }; nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "bokeh" ]; propagatedBuildInputs = [ bleach bokeh param pyviz-comms markdown param pyct testpath pyviz-comms requests setuptools tqdm typing-extensions ]; pythonImportsCheck = [ "panel" ]; # infinite recursion in test dependencies (hvplot) doCheck = false; passthru = { inherit nodejs; # For convenience }; meta = with lib; { description = "A high level dashboarding library for python visualization libraries"; homepage = "https://pyviz.org"; homepage = "https://github.com/holoviz/panel"; changelog = "https://github.com/holoviz/panel/releases/tag/v${version}"; license = licenses.bsd3; maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ]; }; }