aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-logbook/APKBUILD
blob: d2819d5ff357278928b6edd0abbaf4436583a1bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-logbook
pkgver=1.5.3
pkgrel=1
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 --prefix=/usr --root="$pkgdir"
}

sha512sums="c9068324f12a189ced98e2c02753489847fa533ce3a3af07b62c73e9959c2e014d47515d47e756d031639cb220a2c4a9a380cba4cb3ea1b190c50106decba686  py3-logbook-1.5.3.tar.gz"