mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
0ff6929661
Diff: https://github.com/alufers/mitmproxy2swagger/compare/refs/tags/0.8.1...0.8.2 Changelog: https://github.com/alufers/mitmproxy2swagger/releases/tag/0.8.2
43 lines
914 B
Nix
43 lines
914 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "mitmproxy2swagger";
|
|
version = "0.8.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alufers";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-w9Jbtf/BFkr2qEVqpxkRkQ1ve5o77Mhs0kGwdG5ucKI=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/alufers/mitmproxy2swagger/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|