commitizen: pin prompt-toolkit at 3.0.51 until compatibility issue fixed

This commit is contained in:
Sarah Clark
2025-10-06 10:44:40 -07:00
committed by Fabian Affolter
parent 8cd4b4d834
commit 26b33b1aaa

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