2021-01-16 19:49:31 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
2023-05-25 16:03:52 +00:00
|
|
|
, fetchPypi
|
2023-02-26 22:05:58 +00:00
|
|
|
, qt5
|
2021-01-16 19:49:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "graph-cli";
|
2023-09-13 15:15:35 +00:00
|
|
|
version = "0.1.19";
|
2021-01-16 19:49:31 +00:00
|
|
|
|
2023-05-25 16:03:52 +00:00
|
|
|
src = fetchPypi {
|
2021-01-16 19:49:31 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "graph_cli";
|
2023-09-13 15:15:35 +00:00
|
|
|
hash = "sha256-AOfUgeVgcTtuf5IuLYy1zFTBCjWZxu0OiZzUVXDIaSc=";
|
2021-01-16 19:49:31 +00:00
|
|
|
};
|
|
|
|
|
2023-02-26 22:05:58 +00:00
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
2021-01-16 19:49:31 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
numpy
|
|
|
|
pandas
|
2023-02-26 22:05:58 +00:00
|
|
|
(matplotlib.override { enableQt = true; })
|
2021-01-16 19:49:31 +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 ];
|
2023-11-23 02:51:17 +00:00
|
|
|
mainProgram = "graph";
|
2021-01-16 19:49:31 +00:00
|
|
|
};
|
|
|
|
}
|