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 18fa75fc839e..d5b47cbd5970 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-kpi-card = callPackage ../development/python-modules/streamlit-kpi-card { };