summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-03-23 18:37:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-03-23 18:37:56 (GMT)
commit74166ebb4f995ea1e71592103ee269a6356db5cc (patch)
tree8988af7d8dcf6418ca74771500fbae627921ed66 /abs/core
parent5bfe04bf2ad9c0e991797d956f3b34c153756688 (diff)
downloadlinhes_pkgbuild-74166ebb4f995ea1e71592103ee269a6356db5cc.zip
linhes_pkgbuild-74166ebb4f995ea1e71592103ee269a6356db5cc.tar.gz
linhes_pkgbuild-74166ebb4f995ea1e71592103ee269a6356db5cc.tar.bz2
python-attrs: dep of python-pytest
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-attrs/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-attrs/PKGBUILD b/abs/core/python_modules/python-attrs/PKGBUILD
new file mode 100644
index 0000000..ba6f128
--- /dev/null
+++ b/abs/core/python_modules/python-attrs/PKGBUILD
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgbase=python-attrs
+pkgname=('python-attrs' 'python2-attrs')
+pkgver=17.4.0
+pkgrel=1
+pkgdesc="Attributes without boilerplate."
+arch=('any')
+license=('MIT')
+url="https://attrs.readthedocs.org/"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-zope-interface'
+ 'python2-zope-interface' 'python-hypothesis' 'python2-hypothesis')
+source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
+sha512sums=('b631cd5af1be7c78175230363a3cf9d37cb0237d87b24f994812b5734985d114708d5bf7ee5d92b8b13c6b8daa313efde4a9f60f0630df0b62bbcf4928a016ff')
+
+prepare() {
+ cp -a attrs-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/attrs-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/attrs-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/attrs-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/attrs-$pkgver-py2
+ python2 setup.py pytest
+}
+
+package_python-attrs() {
+ depends=('python')
+
+ cd attrs-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-attrs() {
+ depends=('python2')
+
+ cd attrs-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}