From 9e603ba5f13c6da2948fd949f51dd7e47ba18a0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 13 Jun 2022 17:31:30 +0200 Subject: mitmproxy2swagger: init at 0.6.0 --- pkgs/tools/security/mitmproxy2swagger/default.nix | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/tools/security/mitmproxy2swagger/default.nix (limited to 'pkgs/tools/security/mitmproxy2swagger') diff --git a/pkgs/tools/security/mitmproxy2swagger/default.nix b/pkgs/tools/security/mitmproxy2swagger/default.nix new file mode 100644 index 0000000000000..61c27633c4ad5 --- /dev/null +++ b/pkgs/tools/security/mitmproxy2swagger/default.nix @@ -0,0 +1,41 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "mitmproxy2swagger"; + version = "0.6.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "alufers"; + repo = pname; + rev = version; + hash = "sha256-NTxRq7lIm3Y5RxOxdXiKVv39Co8GG9YE2kuEryRUw1Y="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + json-stream + mitmproxy + ruamel-yaml + ]; + + # No tests available + doCheck = false; + + pythonImportsCheck = [ + "mitmproxy2swagger" + ]; + + meta = with lib; { + description = "Tool to automagically reverse-engineer REST APIs"; + homepage = "https://github.com/alufers/mitmproxy2swagger"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} -- cgit 1.4.1