summaryrefslogtreecommitdiff
path: root/user/py3-attrs
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-09-15 19:10:28 -0400
committerMax Rees <maxcrees@me.com>2018-09-17 15:51:25 -0400
commitc4d41702f49cd014f5f5fab9dbc52bcad5cc9908 (patch)
tree593951849aaccd27f50ac6270cb67487eb9b0333 /user/py3-attrs
parentd079f866e1a31f54e0c3f3d76f2f5cc6380a77cb (diff)
downloadpackages-c4d41702f49cd014f5f5fab9dbc52bcad5cc9908.tar.gz
packages-c4d41702f49cd014f5f5fab9dbc52bcad5cc9908.tar.bz2
packages-c4d41702f49cd014f5f5fab9dbc52bcad5cc9908.tar.xz
packages-c4d41702f49cd014f5f5fab9dbc52bcad5cc9908.zip
user/py3-attrs: new package
Diffstat (limited to 'user/py3-attrs')
-rw-r--r--user/py3-attrs/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/py3-attrs/APKBUILD b/user/py3-attrs/APKBUILD
new file mode 100644
index 000000000..8acb9ced9
--- /dev/null
+++ b/user/py3-attrs/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Jean-Louis Fuchs <ganwell@fangorn.ch>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-attrs
+pkgver=18.2.0
+pkgrel=0
+pkgdesc="Python classes without boilerplate"
+url="https://www.attrs.org"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="python3-dev"
+checkdepends="py3-tox"
+source="py3-attrs-$pkgver.tar.gz::https://github.com/python-attrs/attrs/archive/$pkgver.tar.gz"
+builddir="$srcdir/attrs-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ tox -e py36
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="01bcd8d492f0b7e64ae42e311b0e443d2b365d98021d8c15f8003da084f48cd20456c12defd734d3386979bb69ac2bebafa1d14692c6dad69b084929992b2c2d py3-attrs-18.2.0.tar.gz"