Skip to content

Commit fcfa553

Browse files
authored
Merge pull request #323927 from taha-yassine/aider
aider-chat: init at 0.50.0 + python3Packages.pypager: init at 3.0.1
2 parents 607f987 + 122892a commit fcfa553

File tree

4 files changed

+163
-0
lines changed

4 files changed

+163
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20026,6 +20026,12 @@
2002620026
githubId = 6457015;
2002720027
name = "Taha Gharib";
2002820028
};
20029+
taha-yassine = {
20030+
email = "[email protected]";
20031+
github = "taha-yassine";
20032+
githubId = 40228615;
20033+
name = "Taha Yassine";
20034+
};
2002920035
taikx4 = {
2003020036
email = "taikx4@taikx4szlaj2rsdupcwabg35inbny4jk322ngeb7qwbbhd5i55nf5yyd.onion";
2003120037
github = "taikx4";
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
lib,
3+
stdenv,
4+
python311,
5+
fetchFromGitHub,
6+
gitMinimal,
7+
portaudio,
8+
}:
9+
10+
let
11+
python3 = python311.override {
12+
self = python3;
13+
packageOverrides = _: super: { tree-sitter = super.tree-sitter_0_21; };
14+
};
15+
version = "0.50.0";
16+
in
17+
python3.pkgs.buildPythonApplication {
18+
pname = "aider-chat";
19+
inherit version;
20+
pyproject = true;
21+
22+
src = fetchFromGitHub {
23+
owner = "paul-gauthier";
24+
repo = "aider";
25+
rev = "v${version}";
26+
hash = "sha256-hRUxzljtgLGEDwHf6UtQzGQM8CgiRtgNLlVoKa2jU3o=";
27+
};
28+
29+
build-system = with python3.pkgs; [ setuptools ];
30+
31+
dependencies =
32+
with python3.pkgs;
33+
[
34+
aiohappyeyeballs
35+
backoff
36+
beautifulsoup4
37+
configargparse
38+
diff-match-patch
39+
diskcache
40+
flake8
41+
gitpython
42+
grep-ast
43+
importlib-resources
44+
jsonschema
45+
jiter
46+
litellm
47+
networkx
48+
numpy
49+
packaging
50+
pathspec
51+
pillow
52+
playwright
53+
prompt-toolkit
54+
pypager
55+
pypandoc
56+
pyperclip
57+
pyyaml
58+
rich
59+
scipy
60+
sounddevice
61+
soundfile
62+
streamlit
63+
tokenizers
64+
watchdog
65+
]
66+
++ lib.optionals (!tensorflow.meta.broken) [
67+
llama-index-core
68+
llama-index-embeddings-huggingface
69+
];
70+
71+
buildInputs = [ portaudio ];
72+
73+
pythonRelaxDeps = true;
74+
75+
nativeCheckInputs = (with python3.pkgs; [ pytestCheckHook ]) ++ [ gitMinimal ];
76+
77+
disabledTestPaths = [
78+
# requires network
79+
"tests/scrape/test_scrape.py"
80+
81+
# Expected 'mock' to have been called once
82+
"tests/help/test_help.py"
83+
];
84+
85+
disabledTests =
86+
[
87+
# requires network
88+
"test_urls"
89+
"test_get_commit_message_with_custom_prompt"
90+
91+
# FileNotFoundError
92+
"test_get_commit_message"
93+
94+
# Expected 'launch_gui' to have been called once
95+
"test_browser_flag_imports_streamlit"
96+
]
97+
++ lib.optionals stdenv.hostPlatform.isDarwin [
98+
# fails on darwin
99+
"test_dark_mode_sets_code_theme"
100+
"test_default_env_file_sets_automatic_variable"
101+
];
102+
103+
preCheck = ''
104+
export HOME=$(mktemp -d)
105+
'';
106+
107+
meta = {
108+
description = "AI pair programming in your terminal";
109+
homepage = "https://github.com/paul-gauthier/aider";
110+
license = lib.licenses.asl20;
111+
mainProgram = "aider";
112+
maintainers = with lib.maintainers; [ taha-yassine ];
113+
};
114+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
prompt-toolkit,
7+
pygments,
8+
}:
9+
10+
buildPythonPackage {
11+
pname = "pypager";
12+
version = "3.0.1";
13+
pyproject = true;
14+
15+
src = fetchFromGitHub {
16+
owner = "prompt-toolkit";
17+
repo = "pypager";
18+
rev = "0255d59a14ffba81c3842ef570c96c8dfee91e8e";
19+
hash = "sha256-uPpVAI12INKFZDiTQdzQ0dhWCBAGeu0488zZDEV22mU=";
20+
};
21+
22+
build-system = [ setuptools ];
23+
24+
dependencies = [
25+
prompt-toolkit
26+
pygments
27+
];
28+
29+
pythonImportsCheck = [ "pypager" ];
30+
31+
# no tests
32+
doCheck = false;
33+
34+
meta = {
35+
description = ''Pure Python pager (like "more" and "less")'';
36+
homepage = "https://github.com/prompt-toolkit/pypager";
37+
license = lib.licenses.bsd3;
38+
mainProgram = "pypager";
39+
maintainers = with lib.maintainers; [ taha-yassine ];
40+
};
41+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11982,6 +11982,8 @@ self: super: with self; {
1198211982

1198311983
pyowm = callPackage ../development/python-modules/pyowm { };
1198411984

11985+
pypager = callPackage ../development/python-modules/pypager { };
11986+
1198511987
pypamtest = toPythonModule (pkgs.libpam-wrapper.override {
1198611988
enablePython = true;
1198711989
inherit python;

0 commit comments

Comments
 (0)