From edc5d13ef3d37c60b3a35b68463b5cd25f9f50e7 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 10 Jul 2023 12:05:54 +0900 Subject: [PATCH] streamlit: manage as python-modules --- .../python-modules}/streamlit/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 ++-- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) rename pkgs/{applications/science/machine-learning => development/python-modules}/streamlit/default.nix (95%) diff --git a/pkgs/applications/science/machine-learning/streamlit/default.nix b/pkgs/development/python-modules/streamlit/default.nix similarity index 95% rename from pkgs/applications/science/machine-learning/streamlit/default.nix rename to pkgs/development/python-modules/streamlit/default.nix index 36b03152f787..29a3499bbf86 100755 --- a/pkgs/applications/science/machine-learning/streamlit/default.nix +++ b/pkgs/development/python-modules/streamlit/default.nix @@ -1,7 +1,7 @@ { lib , altair , blinker -, buildPythonApplication +, buildPythonPackage , cachetools , click , fetchPypi @@ -25,7 +25,7 @@ , watchdog }: -buildPythonApplication rec { +buildPythonPackage rec { pname = "streamlit"; version = "1.24.0"; format = "setuptools"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9e332ce77927..6901050bd27a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38022,8 +38022,6 @@ with pkgs; stone-kingdoms = callPackage ../games/stone-kingdoms { }; - streamlit = python3Packages.callPackage ../applications/science/machine-learning/streamlit { }; - stt = callPackage ../tools/audio/stt { }; stuntrally = callPackage ../games/stuntrally @@ -38758,6 +38756,8 @@ with pkgs; sc2-headless = callPackage ../applications/science/machine-learning/sc2-headless { }; + streamlit = with python3Packages; toPythonApplication streamlit; + uarmsolver = callPackage ../applications/science/machine-learning/uarmsolver { }; ### SCIENCE/MATH diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0c8b32b1e8b7..1396311cc2e3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12170,6 +12170,8 @@ self: super: with self; { streamlabswater = callPackage ../development/python-modules/streamlabswater { }; + streamlit = callPackage ../development/python-modules/streamlit { }; + streamz = callPackage ../development/python-modules/streamz { }; strenum = callPackage ../development/python-modules/strenum { };