aider-chat: 0.54.0 -> 0.56.0 (#341015)

This commit is contained in:
Fabian Affolter 2024-09-10 20:12:37 +02:00 committed by GitHub
commit ca82da034c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ let
self = python3; self = python3;
packageOverrides = _: super: { tree-sitter = super.tree-sitter_0_21; }; packageOverrides = _: super: { tree-sitter = super.tree-sitter_0_21; };
}; };
version = "0.54.0"; version = "0.56.0";
in in
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "aider-chat"; pname = "aider-chat";
@ -23,10 +23,12 @@ python3.pkgs.buildPythonApplication {
owner = "paul-gauthier"; owner = "paul-gauthier";
repo = "aider"; repo = "aider";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-ysNhfhFGSDhEQLQLP26Lv6qmZehmwtQTSlAqJVPD5O8="; hash = "sha256-e0Fqj67vYt41Zbr1FN2fuLp6cHRius8RtacBHLgB9dM=";
}; };
build-system = with python3.pkgs; [ setuptools ]; pythonRelaxDeps = true;
build-system = with python3.pkgs; [ setuptools-scm ];
dependencies = dependencies =
with python3.pkgs; with python3.pkgs;
@ -41,6 +43,7 @@ python3.pkgs.buildPythonApplication {
gitpython gitpython
grep-ast grep-ast
importlib-resources importlib-resources
json5
jsonschema jsonschema
jiter jiter
litellm litellm
@ -70,32 +73,29 @@ python3.pkgs.buildPythonApplication {
buildInputs = [ portaudio ]; buildInputs = [ portaudio ];
pythonRelaxDeps = true;
nativeCheckInputs = (with python3.pkgs; [ pytestCheckHook ]) ++ [ gitMinimal ]; nativeCheckInputs = (with python3.pkgs; [ pytestCheckHook ]) ++ [ gitMinimal ];
disabledTestPaths = [ disabledTestPaths = [
# requires network # Tests require network access
"tests/scrape/test_scrape.py" "tests/scrape/test_scrape.py"
# Expected 'mock' to have been called once # Expected 'mock' to have been called once
"tests/help/test_help.py" "tests/help/test_help.py"
]; ];
disabledTests = disabledTests =
[ [
# requires network # Tests require network
"test_urls" "test_urls"
"test_get_commit_message_with_custom_prompt" "test_get_commit_message_with_custom_prompt"
# FileNotFoundError # FileNotFoundError
"test_get_commit_message" "test_get_commit_message"
# Expected 'launch_gui' to have been called once # Expected 'launch_gui' to have been called once
"test_browser_flag_imports_streamlit" "test_browser_flag_imports_streamlit"
# AttributeError
"test_simple_send_with_retries"
] ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ ++ lib.optionals stdenv.hostPlatform.isDarwin [
# fails on darwin # Tests fails on darwin
"test_dark_mode_sets_code_theme" "test_dark_mode_sets_code_theme"
"test_default_env_file_sets_automatic_variable" "test_default_env_file_sets_automatic_variable"
]; ];
@ -107,8 +107,9 @@ python3.pkgs.buildPythonApplication {
meta = { meta = {
description = "AI pair programming in your terminal"; description = "AI pair programming in your terminal";
homepage = "https://github.com/paul-gauthier/aider"; homepage = "https://github.com/paul-gauthier/aider";
changelog = "https://github.com/paul-gauthier/aider/blob/v${version}/HISTORY.md";
license = lib.licenses.asl20; license = lib.licenses.asl20;
mainProgram = "aider";
maintainers = with lib.maintainers; [ taha-yassine ]; maintainers = with lib.maintainers; [ taha-yassine ];
mainProgram = "aider";
}; };
} }