1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 llm,
7 llm-github-copilot,
8 writableTmpDirAsHomeHook,
9 pytestCheckHook,
10 pytest-vcr,
11 pytest-asyncio,
12}:
13
14buildPythonPackage rec {
15 pname = "llm-github-copilot";
16 version = "0.3.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "jmdaly";
21 repo = "llm-github-copilot";
22 tag = version;
23 hash = "sha256-BUVpt1Vv0+kxbTYHDdiYy3+ySJKWJ9b+dYexV7YS+NI=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [ llm ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 writableTmpDirAsHomeHook
33 pytest-vcr
34 pytest-asyncio
35 ];
36
37 pythonImportsCheck = [ "llm_github_copilot" ];
38
39 passthru.tests = llm.mkPluginTest llm-github-copilot;
40
41 meta = {
42 description = "LLM plugin providing access to GitHub Copilot";
43 homepage = "https://github.com/jmdaly/llm-github-copilot";
44 changelog = "https://github.com/jmdaly/llm-github-copilot/releases/tag/${src.tag}";
45 license = lib.licenses.asl20;
46 maintainers = with lib.maintainers; [ afh ];
47 };
48}