summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/llm-fragments-github/default.nix
blob: cf4874805c79f86f28b7c054f7ad60aa5d9c758e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  llm,
  llm-fragments-github,
}:

buildPythonPackage rec {
  pname = "llm-fragments-github";
  version = "0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "simonw";
    repo = "llm-fragments-github";
    tag = version;
    hash = "sha256-7i1WRix5AAEG5EXJqtaU+QY56aL0SePdqz84z+C+iYM=";
  };

  build-system = [ setuptools ];

  dependencies = [ llm ];

  pythonImportsCheck = [ "llm_fragments_github" ];

  passthru.tests = llm.mkPluginTest llm-fragments-github;

  meta = {
    description = "Load GitHub repository contents as LLM fragments";
    homepage = "https://github.com/simonw/llm-fragments-github";
    changelog = "https://github.com/simonw/llm-fragments-github/releases/tag/${version}/CHANGELOG.md";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ philiptaron ];
  };
}