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 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"; 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" ];