Files
nixpkgs/pkgs/development/python-modules/files-to-prompt/default.nix
T
Jonathan Davies 116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00

46 lines
977 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
];
disabledTests = [ "test_binary_file_warning" ];
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
];
};
}