nixpkgs/pkgs/tools/security/mitmproxy2swagger/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
915 B
Nix
Raw Normal View History

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