forked from mirrors/nixpkgs
mitmproxy2swagger: init at 0.6.0
This commit is contained in:
parent
64305297ad
commit
9e603ba5f1
41
pkgs/tools/security/mitmproxy2swagger/default.nix
Normal file
41
pkgs/tools/security/mitmproxy2swagger/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "mitmproxy2swagger";
|
||||
version = "0.6.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alufers";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-NTxRq7lIm3Y5RxOxdXiKVv39Co8GG9YE2kuEryRUw1Y=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -8381,6 +8381,8 @@ with pkgs;
|
|||
|
||||
mitmproxy = with python3Packages; toPythonApplication mitmproxy;
|
||||
|
||||
mitmproxy2swagger = callPackage ../tools/security/mitmproxy2swagger { };
|
||||
|
||||
mjpegtools = callPackage ../tools/video/mjpegtools { };
|
||||
|
||||
mjpegtoolsFull = mjpegtools.override {
|
||||
|
|
Loading…
Reference in a new issue