about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tabview
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-04-17 14:02:52 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-04-17 14:54:44 +0200
commit85f67e5b60ee672b0c90110616a94d23ccdbb300 (patch)
tree69fa4647930c65c26f94d0785c2bddcb69db1601 /pkgs/development/python-modules/tabview
parent1b82d09a506031e3cf45f11ca04efbf4dd8bc75f (diff)
python3Packages.tabview: init at 1.4.4
Diffstat (limited to 'pkgs/development/python-modules/tabview')
-rw-r--r--pkgs/development/python-modules/tabview/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/tabview/default.nix b/pkgs/development/python-modules/tabview/default.nix
new file mode 100644
index 0000000000000..35a7f7d8a7dc0
--- /dev/null
+++ b/pkgs/development/python-modules/tabview/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, python
+}:
+
+buildPythonPackage rec {
+  pname = "tabview";
+  version = "1.4.4";
+  format = "setuptools";
+
+  # newest release only available as wheel on pypi
+  src = fetchFromGitHub {
+    owner = "TabViewer";
+    repo = "tabview";
+    rev = version;
+    sha256 = "1d1l8fhdn3w2zg7wakvlmjmgjh9lh9h5fal1clgyiqmhfix4cn4m";
+  };
+
+  checkPhase = ''
+    ${python.interpreter} -m unittest discover
+  '';
+
+  meta = with lib; {
+    description = "Python curses command line CSV and tabular data viewer";
+    homepage = "https://github.com/TabViewer/tabview";
+    changelog = "https://github.com/TabViewer/tabview/blob/main/CHANGELOG.rst";
+    license = licenses.mit;
+    maintainers = with maintainers; [ hexa ];
+  };
+}