aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-pluggy
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-09-04 14:46:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-04 15:28:09 +0000
commitcb28661eef6ff2d1fce93344220d69b340e8b759 (patch)
tree11406c84b5957f9a98d53dc0ba64845ab36caece /main/py-pluggy
parent3b0dc1771fa0307544da6a6804e63676cb4dc0f1 (diff)
downloadaports-cb28661eef6ff2d1fce93344220d69b340e8b759.tar.bz2
aports-cb28661eef6ff2d1fce93344220d69b340e8b759.tar.xz
main/py-pluggy: move from community due to fuse3
Diffstat (limited to 'main/py-pluggy')
-rw-r--r--main/py-pluggy/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/main/py-pluggy/APKBUILD b/main/py-pluggy/APKBUILD
new file mode 100644
index 0000000000..b7b1bc1b2b
--- /dev/null
+++ b/main/py-pluggy/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
+pkgname=py-pluggy
+_pkgname=${pkgname#py-*}
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="Plugin management and hook calling for Python"
+url="https://pluggy.readthedocs.io/en/latest/"
+arch="noarch"
+license="MIT"
+makedepends="python2-dev python3-dev py-setuptools"
+#checkdepends="flake8 pytest py-tox"
+options="!check" # temp disable as requires tox module
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/$_pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+check() {
+ cd "$builddir"
+ sed -i 's|envlist.*|envlist=check,py{27,36}-pytest{30}|' tox.ini
+ tox
+}
+
+sha512sums="ed8fe81907c7dc476ebfbf0f7e0f902577323d64014765e7d7bfe22c2dc7e4977e1ce7ad55ce7f4e923ae23d206d6c3bcc6663de760c877fce82298cc21079db py-pluggy-0.6.0.tar.gz"