summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 353fab6568445cce463f482905a49a22254844bb (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
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: brokenpip3 <brokenpip3[at]gmail[dot]com>

pkgname=gpt-engineer
pkgver=0.3.0
pkgrel=1
pkgdesc="Specify what you want it to build, the AI asks for clarification, and then builds it."
arch=('any')
url="https://pypi.org/project/gpt-engineer/"
license=('MIT')
depends=('python>=3.10' python-openai python-termcolor python-typer
        python-langchain python-backoff python-tiktoken python-dotenv
        python-dataclasses-json python-langchain-community python-tabulate
        python-toml python-pyperclip python-tomlkit)
makedepends=(python-build python-installer python-wheel python-poetry-core)
#checkdepends=(python-pytest python-protonvpn-nm-lib)
install=gpt-engineer.install
source=("https://pypi.org/packages/source/${pkgname::1}/${pkgname}/${pkgname/-/_}-${pkgver}.tar.gz")
# source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('54f41cd5f9c144de39e6b753b5d732db6bdb7984b5f16ae413a783cbced30aaa')


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

package() {
    cd "${pkgname/-/_}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# Disabled due to rudder-sdk-python dependency
# https://github.com/AntonOsika/gpt-engineer/commit/f159dc45f2dccfa7c1f5b4d8290e168d48175104
#check() {
#    cd "${pkgname}-${pkgver}"
#    pytest .
#}