python3Packages.questionary, python3Packages.kantoku, commitizen: fixes (#448944)

This commit is contained in:
Fabian Affolter
2025-10-08 22:55:04 +00:00
committed by GitHub
3 changed files with 28 additions and 2 deletions
+19 -2
View File
@@ -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
@@ -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";
@@ -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"
];