Philip Taron cedea09b46 python3Packages.files-to-prompt: init at 0.6
It was previously packaged in `pkgs/by-name`, but is also a Python package in addition to an application.
2025-05-31 20:52:39 -07:00

46 lines
967 B
Nix

{
lib,
click,
setuptools,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
versionCheckHook,
}:
buildPythonPackage rec {
pname = "files-to-prompt";
version = "0.6";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "files-to-prompt";
tag = version;
hash = "sha256-LWp/DNP3bsh7/goQGkpi4x2N11tRuhLVh2J8H6AUH0w=";
};
build-system = [ setuptools ];
dependencies = [ click ];
nativeCheckInputs = [
pytestCheckHook
versionCheckHook
];
versionCheckProgramArg = "--version";
meta = {
mainProgram = "files-to-prompt";
description = "Concatenate a directory full of files into a single prompt for use with LLMs";
homepage = "https://github.com/simonw/files-to-prompt";
changelog = "https://github.com/simonw/files-to-prompt/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
erethon
philiptaron
];
};
}