From 8cd4b4d834cef1947889a76b03213eb8daf6f6eb Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sun, 5 Oct 2025 13:03:10 -0700 Subject: [PATCH 1/3] python3Packages.questionary: disable failing test Test failure due to a newer version of prompt-toolkit adding a required param. --- pkgs/development/python-modules/questionary/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/questionary/default.nix b/pkgs/development/python-modules/questionary/default.nix index fb7e93ec493e..a8f9ebbfd19e 100644 --- a/pkgs/development/python-modules/questionary/default.nix +++ b/pkgs/development/python-modules/questionary/default.nix @@ -37,6 +37,7 @@ buildPythonPackage rec { "test_blank_line_fix" # TypeError: Attrs.__new__() missing 1 required positional argument: 'dim' + # https://github.com/tmbo/questionary/issues/461 "test_print_with_style" ]; From 26b33b1aaae7648f39b03a6a0cb761276a88e82f Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 6 Oct 2025 10:44:40 -0700 Subject: [PATCH 2/3] commitizen: pin prompt-toolkit at 3.0.51 until compatibility issue fixed --- pkgs/by-name/co/commitizen/package.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/co/commitizen/package.nix b/pkgs/by-name/co/commitizen/package.nix index 4bd8b43e288c..23584dd8a97d 100644 --- a/pkgs/by-name/co/commitizen/package.nix +++ b/pkgs/by-name/co/commitizen/package.nix @@ -1,15 +1,31 @@ { lib, + python3, + fetchPypi, fetchFromGitHub, gitMinimal, stdenv, installShellFiles, nix-update-script, - python3Packages, versionCheckHook, writableTmpDirAsHomeHook, }: - +let + # commitizen 4.9.1 is not compatible with version 3.0.52 of prompt-toolkit + python = python3.override { + packageOverrides = self: super: { + prompt-toolkit = super.prompt-toolkit.overridePythonAttrs (oldAttrs: rec { + version = "3.0.51"; + pname = "prompt_toolkit"; + src = fetchPypi { + inherit pname version; + hash = "sha256-kxoWLjsn/JDIbxtIux+yxSjCdhR15XycBt4TMRx7VO0="; + }; + }); + }; + }; + python3Packages = python.pkgs; +in python3Packages.buildPythonPackage rec { pname = "commitizen"; version = "4.9.1"; @@ -41,6 +57,7 @@ python3Packages.buildPythonPackage rec { importlib-metadata jinja2 packaging + prompt-toolkit pyyaml questionary termcolor From 235266fc0402c946f239f69a4a2313d689727d4c Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Mon, 6 Oct 2025 11:14:04 -0700 Subject: [PATCH 3/3] python3Packages.kantoku: disable tests that fail on Darwin --- pkgs/development/python-modules/kantoku/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/kantoku/default.nix b/pkgs/development/python-modules/kantoku/default.nix index 08d5c6c0f626..4ec5726a2341 100644 --- a/pkgs/development/python-modules/kantoku/default.nix +++ b/pkgs/development/python-modules/kantoku/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, flit-core, @@ -46,8 +47,15 @@ buildPythonPackage rec { disabledTests = [ # AssertionError "test_streams" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Assertion error when test_socketstats hits a permission error + "test_resource_watcher_max_mem" + "test_resource_watcher_max_mem_abs" ]; + __darwinAllowLocalNetworking = true; + meta = { description = "A Process & Socket Manager built with zmq"; homepage = "https://github.com/bentoml/kantoku";