summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b1eac84302fd9c9c6e73f85bc16233e056dd90d (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
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: WhiredPlanck

_name=adaptix
pkgname=python-$_name
pkgver=3.0.0b2
pkgrel=1
pkgdesc='An utility class for creating instances of dataclasses'
arch=('any')
url='https://github.com/reagento/adaptix'
license=('Apache')
depends=('python>=3.8')
makedepends=(python-build python-installer python-setuptools python-wheel)
provides=(python-dataclass-factory)
source=("$url/archive/v$pkgver.tar.gz")
b2sums=('4a87b1fa3167c77ba6f855049bca260521a4880ee10e30a61091307902a30d840635ae80967d838ca476f4d8901ab49c4b27e52b41ae98c25c494a7d23cb2de3')

prepare() {
    cd $_name-$pkgver
    sed -i 's/69.1.0/69.0.3/g' pyproject.toml # setuptools 69.1.0 is not yet available on Arch
}

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

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