nixpkgs/pkgs/development/python-modules/llm-tools-sqlite/default.nix
Philip Taron 42fa505cf7 python3Packages.llm-*: use llm in the dependencies
There's no circular dependency problems anymore.
2025-05-31 20:52:40 -07:00

46 lines
1,010 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
llm,
llm-tools-sqlite,
llm-echo,
pytestCheckHook,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-tools-sqlite";
version = "0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-tools-sqlite";
tag = version;
hash = "sha256-VAmK4cXzZWTWCU92TwMdhNJPvYPZ88t5BZe8vo60SZY=";
};
build-system = [ setuptools ];
dependencies = [ llm ];
nativeCheckInputs = [
llm-echo
pytestCheckHook
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_tools_sqlite" ];
passthru.tests = llm.mkPluginTest llm-tools-sqlite;
meta = {
description = "LLM tools for running queries against SQLite";
homepage = "https://github.com/simonw/llm-tools-sqlite";
changelog = "https://github.com/simonw/llm-tools-sqlite/releases/tag/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}