diff options
author | TBK <tbk@jjtc.eu> | 2019-02-18 15:58:10 +0100 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-03-12 21:25:31 +0000 |
commit | 08b0cb031c5a51fad847b9182ebe27bd57e67fd1 (patch) | |
tree | 3c16b62d7218a2f478f6af24bc5ba8c5d3cd9a95 /community/pytest-forked | |
parent | deac2958a7083418d0a79e499573105689d1e430 (diff) | |
download | aports-08b0cb031c5a51fad847b9182ebe27bd57e67fd1.tar.bz2 aports-08b0cb031c5a51fad847b9182ebe27bd57e67fd1.tar.xz |
community/pytest-forked: moved from testing
Diffstat (limited to 'community/pytest-forked')
-rw-r--r-- | community/pytest-forked/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/pytest-forked/APKBUILD b/community/pytest-forked/APKBUILD new file mode 100644 index 0000000000..f7a3293272 --- /dev/null +++ b/community/pytest-forked/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Dmitry Romanenko <dmitry@romanenko.in> +# Maintainer: Dmitry Romanenko <dmitry@romanenko.in> +pkgname=pytest-forked +_pkgname=${pkgname#py-} +pkgver=1.0.2 +pkgrel=0 +pkgdesc="extracted --boxed from pytest-xdist to ensure backward compat" +url="https://github.com/pytest-dev/pytest-forked" +arch="noarch" +license="MIT" +depends="py-py pytest" +checkdepends="py-six py-tox" +makedepends="python2-dev python3-dev py-setuptools_scm" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + python2 setup.py build + python3 setup.py build +} + +check() { + tox -e py27,py36 +} + +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" +} + +sha512sums="c48819a0434be5d9f9b49c7bc976969551479629e904f99f6dfd80fb9cde95a8a5a9bc2412b38828c1e303832b81fea0d8b7228d336983aebe21cb96b8a02b03 pytest-forked-1.0.2.tar.gz" |