summaryrefslogtreecommitdiff
path: root/main/py3-attrs/APKBUILD
blob: e3dcdc8d1b15e71979e31445d0ac56557dc1775f (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
# Contributor: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=py3-attrs
pkgver=22.1.0
pkgrel=0
pkgdesc="Python classes without boilerplate"
url="http://www.attrs.org"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="py-attrs-$pkgver.tar.gz::https://github.com/python-attrs/attrs/archive/$pkgver.tar.gz
	check.py
	"
builddir="$srcdir/attrs-$pkgver"

replaces="py-attrs" # Backwards compatibility
provides="py-attrs=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/src" python3 "$srcdir"/check.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
3e9190fdc0d5f18a9ab1f0a4ab4c74ef0edb05c8973ea67ead29438ab699ceb61b0864ff3ddacd77c2d107c74c72fa9d17754d0d763d6f64f6d2d6529d8683ca  py-attrs-22.1.0.tar.gz
36bcb4ec145f29e79fc019dc39672f13dc94e1c07225968af51f19e17b2aede0b23dafdff265f1e77a251e53af9802bcf1db5068900ee0a03e1bfc1051c01ef9  check.py
"