depot/third_party/nixpkgs/pkgs/tools/security/mitmproxy2swagger/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

41 lines
826 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "mitmproxy2swagger";
version = "0.6.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "alufers";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7c+SIU5re1GaqKmzjY+wBXwm8CoQ4uaNLNHzUfG0GDA=";
};
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 ];
};
}