1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# Dependencies
setuptools,
boto3,
click,
fastapi,
loguru,
pathspec,
prometheus-client,
pydantic,
python-dotenv,
sentry-sdk,
slowapi,
starlette,
tiktoken,
tomli,
uvicorn,
# Tests
httpx,
jinja2,
gitMinimal,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
python-multipart,
}:
buildPythonPackage rec {
pname = "gitingest";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "coderamp-labs";
repo = "gitingest";
tag = "v${version}";
hash = "sha256-drsncGneZyOCC2GJbrDM+bf4QGI2luacxMhrmdk03l4=";
};
build-system = [
setuptools
];
dependencies = [
boto3
click
fastapi
httpx
loguru
pathspec
prometheus-client
pydantic
python-dotenv
sentry-sdk
slowapi
starlette
tiktoken
tomli
uvicorn
];
pythonImportsCheck = [
"gitingest"
];
nativeCheckInputs = [
jinja2
gitMinimal
pytest-asyncio
pytest-mock
pytestCheckHook
python-multipart
];
disabledTests = [
# Tests require network
"test_cli_with_default_options"
"test_cli_with_options"
"test_cli_with_stdout_output"
"test_cli_writes_file"
"test_clone_specific_branch"
"test_include_ignore_patterns"
"test_ingest_summary"
"test_ingest_with_gitignore"
"test_parse_query_with_branch"
"test_parse_query_without_host"
"test_remote_repository_analysis"
"test_large_repository"
"test_concurrent_requests"
"test_large_file_handling"
"test_repository_with_patterns"
"test_run_ingest_query"
];
meta = {
changelog = "https://github.com/coderamp-labs/gitingest/releases/tag/${src.tag}";
description = "Replace 'hub' with 'ingest' in any github url to get a prompt-friendly extract of a codebase";
homepage = "https://github.com/coderamp-labs/gitingest";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "gitingest";
};
}
|