mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
gitingest: init at 0.1.3
This commit is contained in:
parent
1bd27ef824
commit
79e123fe75
3 changed files with 86 additions and 0 deletions
3
pkgs/by-name/gi/gitingest/package.nix
Normal file
3
pkgs/by-name/gi/gitingest/package.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ python3Packages }:
|
||||
|
||||
python3Packages.toPythonApplication python3Packages.gitingest
|
81
pkgs/development/python-modules/gitingest/default.nix
Normal file
81
pkgs/development/python-modules/gitingest/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue