gitingest: init at 0.1.3

This commit is contained in:
Pol Dellaiera 2025-02-23 16:55:46 +01:00
parent 1bd27ef824
commit 79e123fe75
3 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{ python3Packages }:
python3Packages.toPythonApplication python3Packages.gitingest

View file

@ -0,0 +1,81 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# Dependencies
setuptools,
click,
fastapi,
python-dotenv,
slowapi,
starlette,
tiktoken,
tomli,
uvicorn,
# Tests
httpx,
jinja2,
pytestCheckHook,
python-multipart,
}:
buildPythonPackage rec {
pname = "gitingest";
version = "0.1.3";
pyproject = true;
src = fetchFromGitHub {
owner = "cyclotruc";
repo = "gitingest";
tag = "v${version}";
hash = "sha256-RGrenW0modLH9h5pQOexPvEDQ9Bczoj1qInYmgUoGdo=";
};
build-system = [
setuptools
];
pythonRelaxDeps = [
"fastapi"
];
dependencies = [
click
fastapi
python-dotenv
slowapi
starlette
tiktoken
tomli
uvicorn
];
pythonImportsCheck = [
"gitingest"
];
nativeCheckInputs = [
httpx
jinja2
pytestCheckHook
python-multipart
];
disabledTests = [
# Tests require network
"test_cli_with_default_options"
"test_cli_with_options"
"test_run_ingest_query"
];
meta = {
changelog = "https://github.com/cyclotruc/gitingest/releases/tag/v${version}";
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; [ drupol ];
mainProgram = "gitingest";
};
}

View file

@ -5352,6 +5352,8 @@ self: super: with self; {
github3-py = callPackage ../development/python-modules/github3-py { };
gitingest = callPackage ../development/python-modules/gitingest { };
gitignore-parser = callPackage ../development/python-modules/gitignore-parser { };
gitlike-commands = callPackage ../development/python-modules/gitlike-commands { };