2022-06-13 15:31:30 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
2023-03-13 20:54:34 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-06-13 15:31:30 +00:00
|
|
|
pname = "mitmproxy2swagger";
|
2023-07-05 06:51:07 +00:00
|
|
|
version = "0.10.1";
|
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}";
|
2023-07-05 06:51:07 +00:00
|
|
|
hash = "sha256-vWeMAtNyxYpuVlxav0ibTMoTKwLCNRFJpFKG3bIatTQ=";
|
2022-06-13 15:31:30 +00:00
|
|
|
};
|
|
|
|
|
2023-03-13 20:54:34 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2022-06-13 15:31:30 +00:00
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-03-13 20:54:34 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2022-06-13 15:31:30 +00:00
|
|
|
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";
|
2022-11-24 06:04:34 +00:00
|
|
|
changelog = "https://github.com/alufers/mitmproxy2swagger/releases/tag/${version}";
|
2022-06-13 15:31:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|