mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
3d12611232
Typer specifies the standard optional-dependencies package list, but then due to internal tooling includes it by default in Require-Dist. https://github.com/tiangolo/typer/blob/0.12.3/pyproject.toml#L71-L72 This is in line with changes that happened in typer 0.12.1 https://github.com/tiangolo/typer/releases/tag/0.12.1
52 lines
1018 B
Nix
52 lines
1018 B
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
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
graphviz
|
|
] ++ (with python3.pkgs; [
|
|
scapy
|
|
typer
|
|
typing-extensions
|
|
]);
|
|
|
|
# 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";
|
|
};
|
|
}
|