1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-logbook/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
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
2023-01-10 04:19:31 +01:00

30 lines
811 B
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-logbook
pkgver=1.5.3
pkgrel=4
pkgdesc="Logging replacement for Python"
url="https://logbook.readthedocs.io/en/stable/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools python3-dev cython"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/getlogbook/logbook/archive/$pkgver.tar.gz"
builddir="$srcdir"/logbook-$pkgver
build() {
cython logbook/_speedups.pyx
python3 setup.py build
}
check() {
rm -f tests/test_file_handler.py
py.test-3 tests
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="c9068324f12a189ced98e2c02753489847fa533ce3a3af07b62c73e9959c2e014d47515d47e756d031639cb220a2c4a9a380cba4cb3ea1b190c50106decba686 py3-logbook-1.5.3.tar.gz"