Files
nixpkgs/pkgs/development/python-modules/gitingest/default.nix
T
2025-03-07 02:04:32 +00:00

82 lines
1.4 KiB
Nix

{
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.4";
pyproject = true;
src = fetchFromGitHub {
owner = "cyclotruc";
repo = "gitingest";
tag = "v${version}";
hash = "sha256-2zt4pYgj5fieYS74QCMA9Kw9FUNb13ZJB/tX7WkMQew=";
};
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/${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; [ drupol ];
mainProgram = "gitingest";
};
}