Merge pull request #252993 from veprbl/pr/bokeh_3_2_2

python3.pkgs.bokeh: 2.4.3 -> 3.2.2

authored by Dmitry Kalinkin and committed by GitHub 597ed0c5 2941ef94

+101 -68
+85 -50
pkgs/development/python-modules/bokeh/default.nix
··· 1 - { buildPythonPackage 1 + { lib 2 + , stdenv 3 + , buildPythonPackage 2 4 , fetchPypi 3 - , futures ? null 4 - , isPy27 5 - , isPyPy 5 + , fetchFromGitHub 6 + , pythonOlder 7 + , substituteAll 8 + , colorama 9 + , contourpy 6 10 , jinja2 7 - , lib 8 11 , mock 9 12 , numpy 10 13 , nodejs 11 14 , packaging 15 + , pandas 12 16 , pillow 13 - #, pytestCheckHook# 14 - , pytest 15 - , python-dateutil 17 + , tornado 18 + , pytestCheckHook 16 19 , pyyaml 17 - , selenium 18 - , six 19 - , substituteAll 20 - , tornado 21 - , typing-extensions 22 - , pytz 23 - , flaky 24 - , networkx 20 + , setuptools 21 + , setuptools-git-versioning 22 + , xyzservices 25 23 , beautifulsoup4 26 - , requests 24 + , channels 25 + , click 26 + , colorcet 27 + , coverage 28 + , firefox 29 + , geckodriver 30 + , isort 31 + , json5 27 32 , nbconvert 28 - , icalendar 29 - , pandas 30 - , pythonImportsCheckHook 33 + , networkx 34 + , psutil 35 + , pygments 36 + , pygraphviz 37 + , pytest 38 + , pytest-asyncio 39 + , pytest-xdist 40 + , pytest-timeout 41 + , requests 42 + , scipy 43 + , selenium 44 + , toml 45 + , typing-extensions 31 46 }: 32 47 33 48 buildPythonPackage rec { 34 49 pname = "bokeh"; 35 50 # update together with panel which is not straightforward 36 - version = "2.4.3"; 51 + version = "3.2.2"; 52 + format = "pyproject"; 53 + 54 + disabled = pythonOlder "3.9"; 37 55 38 56 src = fetchPypi { 39 57 inherit pname version; 40 - hash = "sha256-7zOAEWGvN5Zlq3o0aE8iCYYeOu/VyAOiH7u5nZSHSwM="; 58 + hash = "sha256-spWbhSTWnsTniGvDZAdEXwqS4fGVMNO/xARSNqG3pv8="; 59 + }; 60 + 61 + src_test = fetchFromGitHub { 62 + owner = "bokeh"; 63 + repo = pname; 64 + rev = "refs/tags/${version}"; 65 + hash = "sha256-PK9iLOCcivr4oF9Riq73dzxGfxzWRk3bdrCCpRrTv5g="; 41 66 }; 42 67 43 68 patches = [ ··· 48 73 }) 49 74 ]; 50 75 51 - disabled = isPyPy || isPy27; 52 - 53 76 nativeBuildInputs = [ 54 - pythonImportsCheckHook 55 - ]; 56 - 57 - pythonImportsCheck = [ 58 - "bokeh" 77 + colorama 78 + nodejs 79 + setuptools 80 + setuptools-git-versioning 59 81 ]; 60 82 61 83 nativeCheckInputs = [ 62 - mock 84 + pytestCheckHook 85 + beautifulsoup4 86 + channels 87 + click 88 + colorcet 89 + coverage 90 + firefox 91 + geckodriver 92 + isort 93 + json5 94 + nbconvert 95 + networkx 96 + psutil 97 + pygments 98 + pygraphviz 63 99 pytest 64 - pillow 100 + pytest-asyncio 101 + pytest-xdist 102 + pytest-timeout 103 + requests 104 + scipy 65 105 selenium 66 - pytz 67 - flaky 68 - networkx 69 - beautifulsoup4 70 - requests 71 - nbconvert 72 - icalendar 73 - pandas 106 + toml 107 + typing-extensions 74 108 ]; 75 109 76 110 propagatedBuildInputs = [ 77 - pillow 78 111 jinja2 79 - python-dateutil 80 - six 112 + contourpy 113 + numpy 114 + packaging 115 + pandas 116 + pillow 81 117 pyyaml 82 118 tornado 83 - numpy 84 - packaging 85 - typing-extensions 86 - ] 87 - ++ lib.optionals ( isPy27 ) [ 88 - futures 119 + xyzservices 89 120 ]; 90 121 91 - # This test suite is a complete pain. Somehow it can't find its fixtures. 92 - doCheck = false; 122 + doCheck = false; # need more work 123 + pytestFlagsArray = "tests/test_defaults.py"; 124 + pythonImportsCheck = [ "bokeh" ]; 125 + preCheck = '' 126 + cp -rv ''${src_test}/tests/* ./tests/ 127 + ''; 93 128 94 129 meta = { 95 130 description = "Statistical and novel interactive HTML plots for Python";
+6 -7
pkgs/development/python-modules/bokeh/hardcode-nodejs-npmjs-paths.patch
··· 1 - diff --git a/bokeh/util/compiler.py b/bokeh/util/compiler.py 2 - index a752aad7d..8af05ff63 100644 3 - --- a/bokeh/util/compiler.py 4 - +++ b/bokeh/util/compiler.py 5 - @@ -442,8 +442,8 @@ def _detect_nodejs(): 6 - raise RuntimeError('node.js v%s or higher is needed to allow compilation of custom models ' % version + 1 + diff -ru a/src/bokeh/util/compiler.py b/src/bokeh/util/compiler.py 2 + --- a/src/bokeh/util/compiler.py 3 + +++ b/src/bokeh/util/compiler.py 4 + @@ -411,8 +411,8 @@ 5 + raise RuntimeError(f'node.js v{version_repr} or higher is needed to allow compilation of custom models ' + 7 6 '("conda install nodejs" or follow https://nodejs.org/en/download/)') 8 7 9 8 -_nodejs = None ··· 11 10 +_nodejs = "@node_bin@" 12 11 +_npmjs = "@npm_bin@" 13 12 14 - def _nodejs_path(): 13 + def _nodejs_path() -> str: 15 14 global _nodejs
+6 -4
pkgs/development/python-modules/intake/default.nix
··· 26 26 27 27 buildPythonPackage rec { 28 28 pname = "intake"; 29 - version = "0.7.0"; 29 + version = "unstable-2023-08-24"; 30 30 format = "setuptools"; 31 31 32 32 disabled = pythonOlder "3.7"; ··· 34 34 src = fetchFromGitHub { 35 35 owner = pname; 36 36 repo = pname; 37 - rev = "refs/tags/${version}"; 38 - hash = "sha256-2LUblA8eVCOfVJ6BJayralNiv6EFt6MzR5ptKksVNA4="; 37 + rev = "81b1567a2030adfb22b856b4f63cefe35de68983"; 38 + hash = "sha256-S2PoUN0Bao5VULfHhgbXXowopPLm/njAHO3dIM8ILno="; 39 39 }; 40 40 41 41 propagatedBuildInputs = [ ··· 79 79 --replace "'pytest-runner'" "" 80 80 ''; 81 81 82 + __darwinAllowLocalNetworking = true; 83 + 82 84 preCheck = '' 83 85 export HOME=$(mktemp -d); 84 86 export PATH="$PATH:$out/bin"; ··· 106 108 "test_ndarray" 107 109 "test_python" 108 110 # Timing-based, flaky on darwin and possibly others 109 - "TestServerV1Source.test_idle_timer" 111 + "test_idle_timer" 110 112 # arrow-cpp-13 related 111 113 "test_read" 112 114 "test_pickle"
+2 -5
pkgs/development/python-modules/livelossplot/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "livelossplot"; 16 - version = "0.5.4"; 16 + version = "0.5.5"; 17 17 18 18 disabled = pythonOlder "3.6"; 19 19 20 - # version number in source is wrong in this release 21 - postPatch = ''substituteInPlace ${pname}/version.py --replace "0.5.3" "0.5.4"''; 22 - 23 20 src = fetchFromGitHub { 24 21 owner = "stared"; 25 22 repo = pname; 26 23 rev = "v${version}"; 27 - sha256 = "IV6YAidoqVoKvpy+LNNHTPpobiDoGX59bHqJcBtaydk="; 24 + sha256 = "sha256-YU8vX4SubI6txmC/i5fOjcvWfuDFm8+SPmie8Eb1qRs="; 28 25 }; 29 26 30 27 propagatedBuildInputs = [ bokeh ipython matplotlib numpy ];
+2 -2
pkgs/development/python-modules/panel/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "panel"; 19 - version = "0.14.4"; 19 + version = "1.2.2"; 20 20 21 21 format = "wheel"; 22 22 ··· 25 25 # tries to fetch even more artifacts 26 26 src = fetchPypi { 27 27 inherit pname version format; 28 - hash = "sha256-3U/PL8cnbNPw3xEM56YZesQEDXTE79yMCSsjdxwfUU0="; 28 + hash = "sha256-RMRjxcUp6MTs001wdNfC/e6diOcgtqrSaVIOSQfPgTs="; 29 29 }; 30 30 31 31 nativeBuildInputs = [