From dcfc3b1d229410833deaa65f0427aac357c551e5 Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Sat, 16 Jan 2021 11:49:31 -0800 Subject: [PATCH] graph-cli: init at 0.1.7 Co-authored-by: Sandro --- pkgs/tools/graphics/graph-cli/default.nix | 31 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/graphics/graph-cli/default.nix diff --git a/pkgs/tools/graphics/graph-cli/default.nix b/pkgs/tools/graphics/graph-cli/default.nix new file mode 100644 index 000000000000..4da4f50cef82 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 59e6df5b75d3..7df9f3d3994d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17744,6 +17744,8 @@ in gobetween = callPackage ../servers/gobetween { }; + graph-cli = callPackage ../tools/graphics/graph-cli { }; + h2o = callPackage ../servers/http/h2o { }; haka = callPackage ../tools/security/haka { };