diff --git a/pkgs/development/python-modules/ansitable/default.nix b/pkgs/development/python-modules/ansitable/default.nix new file mode 100644 index 000000000000..3f0ecc839a9b --- /dev/null +++ b/pkgs/development/python-modules/ansitable/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + colored, + pytestCheckHook, + numpy, +}: + +buildPythonPackage rec { + pname = "ansitable"; + version = "0.10.0"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-ehPPpZ9C/Nrly9WoJJfZtv2YfZ9MEcQsKtuxNpcJe7U="; + }; + + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ colored ]; + + pythonImportsCheck = [ "ansitable" ]; + + nativeCheckInputs = [ + pytestCheckHook + numpy + ]; + + meta = with lib; { + description = "Quick and easy display of tabular data and matrices with optional ANSI color and borders"; + homepage = "https://pypi.org/project/ansitable/"; + license = licenses.mit; + maintainers = with maintainers; [ + djacu + a-camarillo + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f7dd618be0fc..1361dd429e4c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -621,6 +621,8 @@ self: super: with self; { ansimarkup = callPackage ../development/python-modules/ansimarkup { }; + ansitable = callPackage ../development/python-modules/ansitable { }; + ansiwrap = callPackage ../development/python-modules/ansiwrap { }; anthemav = callPackage ../development/python-modules/anthemav { };