2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, qt5
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "graph-cli";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.1.19";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "graph_cli";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-AOfUgeVgcTtuf5IuLYy1zFTBCjWZxu0OiZzUVXDIaSc=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
numpy
|
|
|
|
pandas
|
2024-01-13 08:15:51 +00:00
|
|
|
(matplotlib.override { enableQt = true; })
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "graph";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|