Skip to content

Commit

Permalink
aider-chat: skip version check in tests
Browse files Browse the repository at this point in the history
aider checks for a new version and prompts for an install on each
launch. These prompts cause checks to fail on the package whenever a new
version of the application is released.

Skip those version checks and include some dependencies missing from the
dependency check.
  • Loading branch information
nwjsmith committed Sep 13, 2024
1 parent c960ba4 commit df8c8b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/by-name/ai/aider-chat/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ python3.pkgs.buildPythonApplication {
numpy
packaging
pathspec
pexpect
pillow
playwright
prompt-toolkit
Expand Down Expand Up @@ -93,6 +94,8 @@ python3.pkgs.buildPythonApplication {
"test_browser_flag_imports_streamlit"
# AttributeError
"test_simple_send_with_retries"
# Expected 'check_version' to have been called once
"test_main_exit_calls_version_check"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Tests fails on darwin
Expand All @@ -102,6 +105,7 @@ python3.pkgs.buildPythonApplication {

preCheck = ''
export HOME=$(mktemp -d)
export AIDER_CHECK_UPDATE=false
'';

meta = {
Expand Down

0 comments on commit df8c8b2

Please sign in to comment.