From f788c73282cab62640e1d77922b548b0ea1160ac Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 11 May 2026 21:19:29 +0700 Subject: [PATCH 1/2] python3Packages.httpie: disable tests broken on Python 3.14 --- pkgs/development/python-modules/httpie/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/httpie/default.nix b/pkgs/development/python-modules/httpie/default.nix index 033106de2c58..ec16f5c4bac6 100644 --- a/pkgs/development/python-modules/httpie/default.nix +++ b/pkgs/development/python-modules/httpie/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, charset-normalizer, defusedxml, @@ -14,6 +13,7 @@ pytest-lazy-fixture, pytest-mock, pytestCheckHook, + pythonAtLeast, requests-toolbelt, requests, responses, @@ -98,6 +98,8 @@ buildPythonPackage rec { "test_naked_invocation" # Test is flaky "test_stdin_read_warning" + # flaky: daemon status check exceeds attempt limit + "test_daemon_runner" # httpbin compatibility issues "test_binary_suppresses_when_terminal" "test_binary_suppresses_when_not_terminal_but_pretty" @@ -107,9 +109,9 @@ buildPythonPackage rec { "test_terminal_output_response_charset_detection" "test_terminal_output_request_charset_detection" ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # Test is flaky - "test_daemon_runner" + ++ lib.optionals (pythonAtLeast "3.14") [ + # https://github.com/httpie/cli/issues/1641 + "test_lazy_choices_help" ]; meta = { From ad7df04dfe31257341a78f8e24330db98f4c05bb Mon Sep 17 00:00:00 2001 From: Harinn Date: Mon, 11 May 2026 22:05:42 +0700 Subject: [PATCH 2/2] python3Packages.httpie: skip pie.dev network tests on darwin --- pkgs/development/python-modules/httpie/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/httpie/default.nix b/pkgs/development/python-modules/httpie/default.nix index ec16f5c4bac6..71f38d59f825 100644 --- a/pkgs/development/python-modules/httpie/default.nix +++ b/pkgs/development/python-modules/httpie/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, charset-normalizer, defusedxml, @@ -112,6 +113,13 @@ buildPythonPackage rec { ++ lib.optionals (pythonAtLeast "3.14") [ # https://github.com/httpie/cli/issues/1641 "test_lazy_choices_help" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # requires network: hit pie.dev (sandbox blocks external) + "remote_httpbin" + "chunked" + "test_saved_session_cookies_on_different_domain" + "test_saved_session_cookie_pool" ]; meta = {