mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
997 B
Text
34 lines
997 B
Text
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-apipkg
|
|
_pkgname=apipkg
|
|
pkgver=2.1.0
|
|
pkgrel=1
|
|
pkgdesc="apipkg: namespace control and lazy-import mechanism"
|
|
url="https://github.com/pytest-dev/apipkg"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-setuptools_scm"
|
|
checkdepends="py3-pytest"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-apipkg" # Backwards compatibility
|
|
provides="py-apipkg=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b apipkg-2.1.0.tar.gz
|
|
"
|