diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-12 22:48:41 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-12 22:48:41 +0100 |
commit | 83de2bc64b2730d15bf0468ffa748aac32656f55 (patch) | |
tree | 3581bea3c58da5a3ff6d67c10369b789222eb09e /pkgs/by-name/ro | |
parent | 7b228851eef16fd37a639829a825dd4531576914 (diff) |
route-graph: init at 0.1.0
CLI tool for creating graphs of routes https://github.com/audiusGmbH/route-graph
Diffstat (limited to 'pkgs/by-name/ro')
-rw-r--r-- | pkgs/by-name/ro/route-graph/package.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/by-name/ro/route-graph/package.nix b/pkgs/by-name/ro/route-graph/package.nix new file mode 100644 index 0000000000000..efce732709276 --- /dev/null +++ b/pkgs/by-name/ro/route-graph/package.nix @@ -0,0 +1,51 @@ +{ lib +, fetchFromGitHub +, graphviz +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "route-graph"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "audiusGmbH"; + repo = "route-graph"; + rev = "refs/tags/${version}"; + hash = "sha256-+sEtzmQk7pglfs8vQbLCwdVVSBQRVazdDKgwdSH9EtI="; + }; + + pythonRelaxDeps = [ + "typing-extensions" + ]; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = [ + graphviz + ] ++ (with python3.pkgs; [ + scapy + typer + typing-extensions + ] ++ typer.optional-dependencies.all); + + # 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"; + }; +} |