about summary refs log tree commit diff
path: root/pkgs/tools/graphics/graph-cli
diff options
context:
space:
mode:
authorBrian Leung <leungbk@mailfence.com>2021-01-16 11:49:31 -0800
committerBrian Leung <leungbk@mailfence.com>2021-01-17 16:28:57 -0800
commitdcfc3b1d229410833deaa65f0427aac357c551e5 (patch)
tree922830aebc02b93e922581173a4cb8833b10d42e /pkgs/tools/graphics/graph-cli
parent2c574332bb2e84c3258e535010baead7d215f372 (diff)
graph-cli: init at 0.1.7
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/graphics/graph-cli')
-rw-r--r--pkgs/tools/graphics/graph-cli/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/graph-cli/default.nix b/pkgs/tools/graphics/graph-cli/default.nix
new file mode 100644
index 0000000000000..4da4f50cef82d
--- /dev/null
+++ b/pkgs/tools/graphics/graph-cli/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, python3Packages
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "graph-cli";
+  version = "0.1.7";
+
+  src = python3Packages.fetchPypi {
+    inherit version;
+    pname = "graph_cli";
+    sha256 = "sha256-/v9COgAjuunJ06HHl55J0moV1p4uO+N+w2QwE8tgebQ=";
+  };
+
+  propagatedBuildInputs = with python3Packages; [
+    numpy
+    pandas
+    matplotlib
+  ];
+
+  # does not contain tests despite reference in Makefile
+  doCheck = false;
+  pythonImportsCheck = [ "graph_cli" ];
+
+  meta = with lib; {
+    description = "CLI to create graphs from CSV files";
+    homepage = "https://github.com/mcastorina/graph-cli/";
+    license = with licenses; [ gpl3Only ];
+    maintainers = with maintainers; [ leungbk ];
+  };
+}