From c50113ab67ba3219602ab226d4d32108b4b20df7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 17 Dec 2025 18:07:49 +0100 Subject: [PATCH] python313Packages.streamlit-card: init at 1.0.2 Streamlit component to make UI cards https://github.com/gamcoh/st-card --- .../python-modules/streamlit-card/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/streamlit-card/default.nix diff --git a/pkgs/development/python-modules/streamlit-card/default.nix b/pkgs/development/python-modules/streamlit-card/default.nix new file mode 100644 index 000000000000..75a66338ed16 --- /dev/null +++ b/pkgs/development/python-modules/streamlit-card/default.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + streamlit, +}: + +buildPythonPackage rec { + pname = "streamlit-card"; + version = "1.0.2"; + pyproject = true; + + src = fetchPypi { + pname = "streamlit_card"; + inherit version; + hash = "sha256-gAHNXt2Kbi2zbugfN9xkXwj3jCGiupaEAxdsaLTzPLE="; + }; + + build-system = [ setuptools ]; + + dependencies = [ streamlit ]; + + pythonImportsCheck = [ "streamlit_card" ]; + + # Module has no tests + doCheck = false; + + meta = { + description = "Streamlit component to make UI cards"; + homepage = "https://github.com/gamcoh/st-card"; + changelog = "https://github.com/gamcoh/st-card/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22f8feba5c7c..bbcbe92fd97b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18180,6 +18180,8 @@ self: super: with self; { streamlit-avatar = callPackage ../development/python-modules/streamlit-avatar { }; + streamlit-card = callPackage ../development/python-modules/streamlit-card { }; + streamlit-folium = callPackage ../development/python-modules/streamlit-folium { }; streamlit-notify = callPackage ../development/python-modules/streamlit-notify { };