Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 53 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 graphviz, 5 python3, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "route-graph"; 10 version = "0.2.2"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "audiusGmbH"; 15 repo = "route-graph"; 16 tag = version; 17 hash = "sha256-HmfmUeT5vt0yWVs7GhIPVt4NZtTfe7HYPLRqfQE/tZM="; 18 }; 19 20 pythonRelaxDeps = [ 21 "typer" 22 "typing-extensions" 23 ]; 24 25 build-system = with python3.pkgs; [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 graphviz 31 ] 32 ++ (with python3.pkgs; [ 33 scapy 34 typer 35 typing-extensions 36 ]); 37 38 # Project has no tests 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "route_graph" 43 ]; 44 45 meta = { 46 description = "CLI tool for creating graphs of routes"; 47 homepage = "https://github.com/audiusGmbH/route-graph"; 48 changelog = "https://github.com/audiusGmbH/route-graph/releases/tag/${version}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 mainProgram = "route-graph"; 52 }; 53}