diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-03-13 09:52:23 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-03-13 09:55:25 +0100 |
commit | 83da5e36945dc17e61de57f4adcd55049a43b5bc (patch) | |
tree | 42ccdaff7020c7f0db36dc43584416d69f833d14 | |
parent | 195600bc7e7af3d62867f4729a67271d52148b5c (diff) |
mitmproxy2swagger: override json-stream
-rw-r--r-- | pkgs/tools/security/mitmproxy2swagger/default.nix | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/pkgs/tools/security/mitmproxy2swagger/default.nix b/pkgs/tools/security/mitmproxy2swagger/default.nix index 3378e0d332c7f..cc30c8f2afcbc 100644 --- a/pkgs/tools/security/mitmproxy2swagger/default.nix +++ b/pkgs/tools/security/mitmproxy2swagger/default.nix @@ -3,7 +3,22 @@ , python3 }: -python3.pkgs.buildPythonApplication rec { +let + python = python3.override { + packageOverrides = final: prev: { + # https://github.com/alufers/mitmproxy2swagger/issues/27 + json-stream = prev.json-stream.overridePythonAttrs (old: rec { + version = "1.5.1"; + src = old.src.override { + inherit version; + hash = "sha256-htajifmbXtivUwsORzBzJA68nJCACcL75kiBysVYCxY="; + }; + }); + }; + }; +in + +python.pkgs.buildPythonApplication rec { pname = "mitmproxy2swagger"; version = "0.7.2"; format = "pyproject"; @@ -15,11 +30,11 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-LnH0RDiRYJAGI7ZT6Idu1AqSz0yBRuBJvhIgY72Z4CA="; }; - nativeBuildInputs = with python3.pkgs; [ + nativeBuildInputs = with python.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python.pkgs; [ json-stream mitmproxy ruamel-yaml |