2022-06-13 15:31:30 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "mitmproxy2swagger";
|
2022-08-21 11:34:25 +00:00
|
|
|
version = "0.7.0";
|
2022-06-13 15:31:30 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alufers";
|
|
|
|
repo = pname;
|
2022-06-17 08:11:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-08-21 11:34:25 +00:00
|
|
|
hash = "sha256-tLLz3nGIzsE6bkHbMC+Cfevv7E/NNHxtYqCUwo/5yF4=";
|
2022-06-13 15:31:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|