summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcb98f01330e4644c725210690e70e2048c2ed12 (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
# Maintainer: Senge Dev <sengedev@gmail.com>
# Contributor: Senge Dev <sengedev@gmail.com>

_pkgname=zhipuai
pkgname=python-${_pkgname}
pkgver=1.0.0
pkgrel=2
pkgdesc='ZhipuAI LLM API SDK for Python'
arch=(any)
url="https://pypi.org/project/${_pkgname}/"
license=(MIT)
depends=(python python-pyjwt python-httpx python-pydantic python-cachetools)
makedepends=(python-setuptools)
source=("${_pkgname}::git+https://github.com/MetaGLM/${_pkgname}-sdk-python-v4")
sha256sums=('SKIP')
install='zhipuai.install'
build() {
	cd "${_pkgname}"
	python setup.py build
}

package() {
	cd "${_pkgname}"
	python setup.py install --skip-build --root="${pkgdir}" --optimize=1
}