From 8bed9cc42f2c11be6a106b6c5b031d00ea61622a Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 27 Nov 2022 12:46:45 +0000 Subject: [PATCH] streamlit: 1.13.0 -> 1.15.0 --- .../machine-learning/streamlit/default.nix | 62 +++++++++---------- pkgs/top-level/python-packages.nix | 6 ++ 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/pkgs/applications/science/machine-learning/streamlit/default.nix b/pkgs/applications/science/machine-learning/streamlit/default.nix index 03db1cf3cf85..90830ae9ffca 100755 --- a/pkgs/applications/science/machine-learning/streamlit/default.nix +++ b/pkgs/applications/science/machine-learning/streamlit/default.nix @@ -1,41 +1,41 @@ { # Nix - lib, - buildPythonApplication, - fetchPypi, - - # Build inputs - altair, - blinker, - click, - cachetools, - GitPython, - importlib-metadata, - jinja2, - pillow, - pyarrow, - pydeck, - pympler, - protobuf, - requests, - rich, - semver, - setuptools, - toml, - tornado, - tzlocal, - validators, - watchdog, + lib +, buildPythonApplication +, fetchPypi +, # Build inputs + altair +, blinker +, click +, cachetools +, GitPython +, importlib-metadata +, jinja2 +, pillow +, pyarrow +, pydeck +, pympler +, protobuf3 +, requests +, rich +, semver +, setuptools +, toml +, tornado +, tzlocal +, validators +, watchdog +, }: buildPythonApplication rec { pname = "streamlit"; - version = "1.13.0"; - format = "wheel"; # source currently requires pipenv + version = "1.15.0"; + format = "wheel"; # source currently requires pipenv src = fetchPypi { inherit pname version format; - hash = "sha256-MjGm9CT4p/Nl3J5G1Pu2ajY0/VcMdHabimn3ktkoXTo="; + hash = "sha256-QtBr3INWBwCBab+FzmvzrjGjwVVHC8NCET9wtRVeVbc="; }; propagatedBuildInputs = [ @@ -47,7 +47,7 @@ buildPythonApplication rec { importlib-metadata jinja2 pillow - protobuf + protobuf3 pyarrow pydeck pympler @@ -63,7 +63,7 @@ buildPythonApplication rec { ]; postInstall = '' - rm $out/bin/streamlit.cmd # remove windows helper + rm $out/bin/streamlit.cmd # remove windows helper ''; meta = with lib; { diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8e25b0335c61..7dbe4242bb54 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7354,11 +7354,17 @@ self: super: with self; { proto-plus = callPackage ../development/python-modules/proto-plus { }; + # Protobuf 4.x protobuf = callPackage ../development/python-modules/protobuf { # If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version. inherit (pkgs) protobuf; }; + # Protobuf 3.x + protobuf3 = callPackage ../development/python-modules/protobuf { + protobuf = pkgs.protobuf3_20; + }; + protobuf3-to-dict = callPackage ../development/python-modules/protobuf3-to-dict { }; proton-client = callPackage ../development/python-modules/proton-client { };