mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
2a5dfa8c7f
Diff: https://github.com/audiusGmbH/route-graph/compare/refs/tags/0.2.1...0.2.2 Changelog: https://github.com/audiusGmbH/route-graph/releases/tag/0.2.2
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, graphviz
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "route-graph";
|
|
version = "0.2.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "audiusGmbH";
|
|
repo = "route-graph";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-HmfmUeT5vt0yWVs7GhIPVt4NZtTfe7HYPLRqfQE/tZM=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"typer"
|
|
"typing-extensions"
|
|
];
|
|
|
|
build-system = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
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";
|
|
};
|
|
}
|