1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 llm,
7 llm-fragments-pypi,
8 httpx,
9}:
10
11buildPythonPackage rec {
12 pname = "llm-fragments-pypi";
13 version = "0.1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "samueldg";
18 repo = "llm-fragments-pypi";
19 tag = version;
20 hash = "sha256-1XqAmuZ1WMHD6JbLbLsK9K4Uf3FvvKJD4mn1G2J/3C8=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [
26 httpx
27 llm
28 ];
29
30 pythonImportsCheck = [ "llm_fragments_pypi" ];
31
32 passthru.tests = llm.mkPluginTest llm-fragments-pypi;
33
34 meta = {
35 description = "LLM fragments plugin for PyPI packages metadata";
36 homepage = "https://github.com/samueldg/llm-fragments-pypi";
37 changelog = "https://github.com/samueldg/llm-fragments-pypi/releases/tag/${version}/CHANGELOG.md";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ philiptaron ];
40 };
41}