From 9c35e69c84d550a3f49f5732c7210e1d6b4dd5c5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 9 Feb 2023 13:50:38 +0100 Subject: Revert "python3Packages.bokeh: 2.4.3 -> 3.0.3" This reverts commit 1ac65c004e1954799f54900135a2d89557b77757. Reverse dependencies are not ready yet, breaks panel and multiple other packages. --- pkgs/development/python-modules/bokeh/default.nix | 11 +++-------- .../python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch | 14 +++++++------- 2 files changed, 10 insertions(+), 15 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/bokeh/default.nix b/pkgs/development/python-modules/bokeh/default.nix index 1a4648d413821..5d570844862f7 100644 --- a/pkgs/development/python-modules/bokeh/default.nix +++ b/pkgs/development/python-modules/bokeh/default.nix @@ -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 = [ @@ -73,10 +70,10 @@ buildPythonPackage rec { requests nbconvert icalendar + pandas ]; propagatedBuildInputs = [ - contourpy pillow jinja2 python-dateutil @@ -84,10 +81,8 @@ buildPythonPackage rec { pyyaml tornado numpy - pandas packaging typing-extensions - xyzservices ] ++ lib.optionals ( isPy27 ) [ futures diff --git a/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch b/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch index fffdea592b731..f8f33c0021f27 100644 --- a/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch +++ b/pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch @@ -1,9 +1,9 @@ -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 @@ -11,5 +11,5 @@ index 9af8691..4b93543 100644 +_nodejs = "@node_bin@" +_npmjs = "@npm_bin@" - def _nodejs_path() -> str: + def _nodejs_path(): global _nodejs -- cgit 1.4.1 From dfadd4438f7fef9e21c3fef9a120242e9dcc155c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 9 Feb 2023 13:34:46 +0100 Subject: python310Packages.panel: 0.14.2 -> 0.14.3 https://github.com/holoviz/panel/releases/tag/v0.14.3 --- pkgs/development/python-modules/panel/default.nix | 39 +++++++++++++++-------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'pkgs') diff --git a/pkgs/development/python-modules/panel/default.nix b/pkgs/development/python-modules/panel/default.nix index 9b35cb6ac1778..881280a1fca8e 100644 --- a/pkgs/development/python-modules/panel/default.nix +++ b/pkgs/development/python-modules/panel/default.nix @@ -1,20 +1,22 @@ { 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"; @@ -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 ]; }; } -- cgit 1.4.1