Files
nixpkgs/pkgs/by-name/mi/mitmproxy2swagger/package.nix
dniku 9db2556811 mitmproxy: drop unused msgpack dependency
MsgPack rendering has been provided by mitmproxy-rs since mitmproxy 12, so the Python msgpack dependency is unused. Declare msgpack directly in mitmproxy2swagger, which still requires it.

https://github.com/mitmproxy/mitmproxy/pull/8319

Assisted-by: OpenAI Codex (gpt-5.6-sol-xhigh)
2026-08-01 08:01:22 +01:00

47 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "mitmproxy2swagger";
version = "0.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "alufers";
repo = "mitmproxy2swagger";
tag = finalAttrs.version;
hash = "sha256-J5vuT0p+mc1XXEl7GnXbT/J4mTjzva66o3cUizBWMko=";
};
pythonRelaxDeps = [
"mitmproxy"
"ruamel.yaml"
];
build-system = with python3.pkgs; [ hatchling ];
dependencies = with python3.pkgs; [
json-stream
mitmproxy
msgpack
ruamel-yaml
];
# No tests available
doCheck = false;
pythonImportsCheck = [ "mitmproxy2swagger" ];
meta = {
description = "Tool to automagically reverse-engineer REST APIs";
homepage = "https://github.com/alufers/mitmproxy2swagger";
changelog = "https://github.com/alufers/mitmproxy2swagger/releases/tag/${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mitmproxy2swagger";
};
})