diff --git a/pkgs/development/python-modules/rich-tables/default.nix b/pkgs/development/python-modules/rich-tables/default.nix new file mode 100644 index 000000000000..2c7d29b51316 --- /dev/null +++ b/pkgs/development/python-modules/rich-tables/default.nix @@ -0,0 +1,66 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + coloraide, + humanize, + multimethod, + platformdirs, + rich, + sqlparse, + typing-extensions, + rgbxy ? null, +}: +let + version = "0.8.0"; +in +buildPythonPackage { + pname = "rich-tables"; + inherit version; + pyproject = true; + + src = fetchPypi { + pname = "rich_tables"; + inherit version; + hash = "sha256-MN8QH6kLyogbcQ0VE9U034cwSFnaFDB2/Rnvy1DYyl4="; + }; + + build-system = [ + poetry-core + ]; + + dependencies = [ + coloraide + humanize + multimethod + platformdirs + rich + sqlparse + typing-extensions + ]; + + optional-dependencies = { + hue = [ + rgbxy + ]; + }; + + pythonRelaxDeps = [ + "multimethod" + ]; + + pythonImportsCheck = [ + "rich_tables" + ]; + + meta = { + description = "Ready-made rich tables for various purposes"; + homepage = "https://pypi.org/project/rich-tables/"; + license = lib.licenses.mit; + maintainers = [ + lib.maintainers._9999years + ]; + mainProgram = "table"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b397360c29ed..58c4e5e209b1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15827,6 +15827,8 @@ self: super: with self; { rich-rst = callPackage ../development/python-modules/rich-rst { }; + rich-tables = callPackage ../development/python-modules/rich-tables { }; + rich-theme-manager = callPackage ../development/python-modules/rich-theme-manager { }; rich-toolkit = callPackage ../development/python-modules/rich-toolkit { };