diff --git a/pkgs/development/python-modules/terminaltables3/default.nix b/pkgs/development/python-modules/terminaltables3/default.nix new file mode 100644 index 0000000000000..a241159ac4b13 --- /dev/null +++ b/pkgs/development/python-modules/terminaltables3/default.nix @@ -0,0 +1,46 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + python312Packages, +}: + +buildPythonPackage rec { + pname = "terminaltables3"; + version = "4.0.0"; + pyproject = true; + disabled = pythonOlder "3.8"; + + build-system = [ + poetry-core + ]; + + src = fetchFromGitHub { + owner = "matthewdeanmartin"; + repo = "terminaltables3"; + rev = "f1c465b36eb9b91a984d8864b21376e7c37075b8"; # Untagged commit 4.0.0 + hash = "sha256-UcEovh1Eb4QNPwLGDjCphPlJSSkOdhCJ2fK3tuSWOTc="; + }; + + pythonImportsCheck = [ "terminaltables3" ]; + + # Tests are broken upstream + doCheck = false; + + nativeCheckInputs = [ + pytestCheckHook + python312Packages.colorama + python312Packages.colorclass + python312Packages.termcolor + ]; + + meta = with lib; { + description = "Display simple tables in terminals"; + homepage = "https://github.com/matthewdeanmartin/terminaltables3"; + license = licenses.mit; + maintainers = with maintainers; [ kekschen ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a7111bf884dbe..63d8313d1dc91 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15608,6 +15608,8 @@ self: super: with self; { terminaltables = callPackage ../development/python-modules/terminaltables { }; + terminaltables3 = callPackage ../development/python-modules/terminaltables3 { }; + terminaltexteffects = callPackage ../development/python-modules/terminaltexteffects { }; termplotlib = callPackage ../development/python-modules/termplotlib { };