initial commit

This commit is contained in:
sid 2026-02-23 20:50:47 +01:00
commit c094b5770c
113 changed files with 6879 additions and 0 deletions

100
pkgs/gitingest/default.nix Normal file
View file

@ -0,0 +1,100 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# Dependencies
setuptools,
click,
fastapi,
pathspec,
pydantic,
python-dotenv,
slowapi,
starlette,
tiktoken,
tomli,
uvicorn,
loguru,
# Tests
httpx,
jinja2,
gitMinimal,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
python-multipart,
}:
buildPythonPackage rec {
pname = "gitingest";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "cyclotruc";
repo = "gitingest";
tag = "v${version}";
hash = "sha256-drsncGneZyOCC2GJbrDM+bf4QGI2luacxMhrmdk03l4=";
};
build-system = [
setuptools
];
dependencies = [
click
fastapi
pathspec
pydantic
python-dotenv
slowapi
starlette
tiktoken
tomli
uvicorn
httpx
loguru
];
pythonImportsCheck = [
"gitingest"
];
nativeCheckInputs = [
httpx
jinja2
gitMinimal
pytest-asyncio
pytest-mock
pytestCheckHook
python-multipart
];
doCheck = false;
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_with_gitignore"
"test_parse_query_with_branch"
"test_parse_query_without_host"
"test_run_ingest_query"
];
meta = {
changelog = "https://github.com/cyclotruc/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/cyclotruc/gitingest";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "gitingest";
};
}

View file

@ -0,0 +1,68 @@
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "gitingest";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "coderamp-labs";
repo = "gitingest";
rev = "v${version}";
hash = "sha256-drsncGneZyOCC2GJbrDM+bf4QGI2luacxMhrmdk03l4=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
click
httpx
loguru
pathspec
pydantic
python-dotenv
starlette
strenum
tiktoken
typing-extensions
];
optional-dependencies = with python3.pkgs; {
dev = [
eval-type-backport
pre-commit
pytest
pytest-asyncio
pytest-cov
pytest-mock
];
server = [
boto3
fastapi
prometheus-client
sentry-sdk
slowapi
uvicorn
];
};
pythonImportsCheck = [
"gitingest"
];
meta = {
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";
changelog = "https://github.com/coderamp-labs/gitingest/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
mainProgram = "gitingest";
};
}