about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansitable/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ansitable/default.nix')
-rw-r--r--pkgs/development/python-modules/ansitable/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ansitable/default.nix b/pkgs/development/python-modules/ansitable/default.nix
new file mode 100644
index 000000000000..e722d504d61f
--- /dev/null
+++ b/pkgs/development/python-modules/ansitable/default.nix
@@ -0,0 +1,46 @@
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  pythonOlder,
+  setuptools,
+  colored,
+  pytestCheckHook,
+  numpy,
+  pandas,
+}:
+
+buildPythonPackage rec {
+  pname = "ansitable";
+  version = "0.11.3";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-navayezkSSHgwOysC3fbgTQahRZjIV24JzIAQl+X5Jk=";
+  };
+
+  build-system = [ setuptools ];
+
+  dependencies = [ colored ];
+
+  pythonImportsCheck = [ "ansitable" ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+    numpy
+    pandas
+  ];
+
+  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
+    ];
+  };
+}