Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "mitmproxy2swagger"; 8 version = "0.10.0"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "alufers"; 13 repo = pname; 14 rev = "refs/tags/${version}"; 15 hash = "sha256-tvlxQrZzY2r+zipNm8XFTvYgLZAbg2xzoFL6VDt+/fk="; 16 }; 17 18 nativeBuildInputs = with python3.pkgs; [ 19 poetry-core 20 ]; 21 22 propagatedBuildInputs = with python3.pkgs; [ 23 json-stream 24 mitmproxy 25 ruamel-yaml 26 ]; 27 28 # No tests available 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "mitmproxy2swagger" 33 ]; 34 35 meta = with lib; { 36 description = "Tool to automagically reverse-engineer REST APIs"; 37 homepage = "https://github.com/alufers/mitmproxy2swagger"; 38 changelog = "https://github.com/alufers/mitmproxy2swagger/releases/tag/${version}"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}