2024-03-12 21:48:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, graphviz
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "route-graph";
|
2024-04-29 06:57:08 +00:00
|
|
|
version = "0.2.2";
|
2024-03-12 21:48:41 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "audiusGmbH";
|
|
|
|
repo = "route-graph";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-29 06:57:08 +00:00
|
|
|
hash = "sha256-HmfmUeT5vt0yWVs7GhIPVt4NZtTfe7HYPLRqfQE/tZM=";
|
2024-03-12 21:48:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-04-29 06:57:08 +00:00
|
|
|
"typer"
|
2024-03-12 21:48:41 +00:00
|
|
|
"typing-extensions"
|
|
|
|
];
|
|
|
|
|
2024-04-29 06:56:36 +00:00
|
|
|
build-system = with python3.pkgs; [
|
2024-03-12 21:48:41 +00:00
|
|
|
poetry-core
|
2024-04-29 06:56:36 +00:00
|
|
|
];
|
|
|
|
|
2024-03-12 21:48:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
graphviz
|
|
|
|
] ++ (with python3.pkgs; [
|
|
|
|
scapy
|
|
|
|
typer
|
|
|
|
typing-extensions
|
2024-07-07 09:52:13 +00:00
|
|
|
]);
|
2024-03-12 21:48:41 +00:00
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"route_graph"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool for creating graphs of routes";
|
|
|
|
homepage = "https://github.com/audiusGmbH/route-graph";
|
|
|
|
changelog = "https://github.com/audiusGmbH/route-graph/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "route-graph";
|
|
|
|
};
|
|
|
|
}
|