1- { lib , stdenv , python312 , fetchFromGitHub , gitMinimal , portaudio
2- , playwright-driver , } :
1+ {
2+ lib ,
3+ stdenv ,
4+ python312 ,
5+ fetchFromGitHub ,
6+ gitMinimal ,
7+ portaudio ,
8+ playwright-driver ,
9+ } :
310
411let
512 python3 = python312 . override {
119126
120127 buildInputs = [ portaudio ] ;
121128
122- nativeCheckInputs = ( with python3 . pkgs ; [ pytestCheckHook ] )
123- ++ [ gitMinimal ] ;
129+ nativeCheckInputs = ( with python3 . pkgs ; [ pytestCheckHook ] ) ++ [ gitMinimal ] ;
124130
125131 disabledTestPaths = [
126132 # Tests require network access
@@ -129,62 +135,76 @@ let
129135 "tests/help/test_help.py"
130136 ] ;
131137
132- disabledTests = [
133- # Tests require network
134- "test_urls"
135- "test_get_commit_message_with_custom_prompt"
136- # FileNotFoundError
137- "test_get_commit_message"
138- # Expected 'launch_gui' to have been called once
139- "test_browser_flag_imports_streamlit"
140- # AttributeError
141- "test_simple_send_with_retries"
142- # Expected 'check_version' to have been called once
143- "test_main_exit_calls_version_check"
144- # AssertionError: assert 2 == 1
145- "test_simple_send_non_retryable_error"
146- ] ++ lib . optionals stdenv . hostPlatform . isDarwin [
147- # Tests fails on darwin
148- "test_dark_mode_sets_code_theme"
149- "test_default_env_file_sets_automatic_variable"
150- # FileNotFoundError: [Errno 2] No such file or directory: 'vim'
151- "test_pipe_editor"
152- ] ;
138+ disabledTests =
139+ [
140+ # Tests require network
141+ "test_urls"
142+ "test_get_commit_message_with_custom_prompt"
143+ # FileNotFoundError
144+ "test_get_commit_message"
145+ # Expected 'launch_gui' to have been called once
146+ "test_browser_flag_imports_streamlit"
147+ # AttributeError
148+ "test_simple_send_with_retries"
149+ # Expected 'check_version' to have been called once
150+ "test_main_exit_calls_version_check"
151+ # AssertionError: assert 2 == 1
152+ "test_simple_send_non_retryable_error"
153+ ]
154+ ++ lib . optionals stdenv . hostPlatform . isDarwin [
155+ # Tests fails on darwin
156+ "test_dark_mode_sets_code_theme"
157+ "test_default_env_file_sets_automatic_variable"
158+ # FileNotFoundError: [Errno 2] No such file or directory: 'vim'
159+ "test_pipe_editor"
160+ ] ;
153161
154- makeWrapperArgs =
155- [ "--set AIDER_CHECK_UPDATE false" "--set AIDER_ANALYTICS false" ] ;
162+ makeWrapperArgs = [
163+ "--set AIDER_CHECK_UPDATE false"
164+ "--set AIDER_ANALYTICS false"
165+ ] ;
156166
157167 preCheck = ''
158168 export HOME=$(mktemp -d)
159169 export AIDER_ANALYTICS="false"
160170 '' ;
161171
162172 optional-dependencies = with python3 . pkgs ; {
163- playwright = [ greenlet playwright pyee typing-extensions ] ;
173+ playwright = [
174+ greenlet
175+ playwright
176+ pyee
177+ typing-extensions
178+ ] ;
164179 } ;
165180
166181 passthru = {
167- withPlaywright = aider-chat . overridePythonAttrs
168- ( { dependencies , makeWrapperArgs , propagatedBuildInputs ? [ ] , ... } : {
169- dependencies = dependencies
170- ++ aider-chat . optional-dependencies . playwright ;
171- propagatedBuildInputs = propagatedBuildInputs
172- ++ [ playwright-driver . browsers ] ;
182+ withPlaywright = aider-chat . overridePythonAttrs (
183+ {
184+ dependencies ,
185+ makeWrapperArgs ,
186+ propagatedBuildInputs ? [ ] ,
187+ ...
188+ } :
189+ {
190+ dependencies = dependencies ++ aider-chat . optional-dependencies . playwright ;
191+ propagatedBuildInputs = propagatedBuildInputs ++ [ playwright-driver . browsers ] ;
173192 makeWrapperArgs = makeWrapperArgs ++ [
174193 "--set PLAYWRIGHT_BROWSERS_PATH ${ playwright-driver . browsers } "
175194 "--set PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true"
176195 ] ;
177- } ) ;
196+ }
197+ ) ;
178198 } ;
179199
180200 meta = {
181201 description = "AI pair programming in your terminal" ;
182202 homepage = "https://github.com/paul-gauthier/aider" ;
183- changelog =
184- "https://github.com/paul-gauthier/aider/blob/v${ version } /HISTORY.md" ;
203+ changelog = "https://github.com/paul-gauthier/aider/blob/v${ version } /HISTORY.md" ;
185204 license = lib . licenses . asl20 ;
186205 maintainers = with lib . maintainers ; [ happysalada ] ;
187206 mainProgram = "aider" ;
188207 } ;
189208 } ;
190- in aider-chat
209+ in
210+ aider-chat
0 commit comments