summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59bfec942bbb57b312aac73e145a92ba861a6a31 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Ido Rosen <ido@kernel.org>

pkgname=llm
pkgver=0.29
pkgrel=1
pkgdesc='A CLI tool and Python library for interfacing with popular large language models.'
arch=(any)
url='https://github.com/simonw/llm'
license=(Apache-2.0)
depends=(python
         python-numpy
         python-click
         python-condense-json
         python-openai
         python-click-default-group
         sqlite-utils
         python-sqlite-migrate
         python-pydantic
         python-pyyaml
         python-pluggy
         python-ulid
         python-puremagic
         python-httpx)
makedepends=(python-build
             python-setuptools
             python-installer
             python-wheel)
#checkdepends=(python-pytest
#              python-pytest-httpx
#              python-pytest-asyncio
#              python-cogapp
#              mypy python-pytest-mypy
#              python-black
#              python-pytest-recording
#              python-ruff
#              python-pytest-ruff
#              python-syrupy
#              ...)
#optdepends=('xyz: for xyz')
source=($pkgname-$pkgver.tar.gz::https://github.com/simonw/llm/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('4607056c76cda8b7339fac576792fca79bc1ed3ff227dc177b852b870035c88d')

build() {
    cd $pkgname-$pkgver
    python -m build --wheel --no-isolation
}

#check() {
#    cd $pkgname-$pkgver
#    pytest -v
#}

package() {
    cd $pkgname-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}