diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-06-13 17:31:30 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-06-13 17:31:30 +0200 |
commit | 9e603ba5f13c6da2948fd949f51dd7e47ba18a0f (patch) | |
tree | 90115670eafe249a914931f0dd2897e99316b978 /pkgs/tools/security/mitmproxy2swagger | |
parent | 64305297adc748610ac3b3e75ce6303e9622101e (diff) |
mitmproxy2swagger: init at 0.6.0
Diffstat (limited to 'pkgs/tools/security/mitmproxy2swagger')
-rw-r--r-- | pkgs/tools/security/mitmproxy2swagger/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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 ]; + }; +} |