mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-28 14:12:17 +01:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-logutils
|
|
pkgver=0.3.5
|
|
pkgrel=3
|
|
pkgdesc="Logging utilities"
|
|
url="https://bitbucket.org/vinay.sajip/logutils/src/master/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 "
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-redis redis"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/l/logutils/logutils-$pkgver.tar.gz
|
|
test-assertEqual.patch"
|
|
builddir="$srcdir/logutils-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
# deselect test that is written for older python versions, redis test fails on ppc64le and s390x
|
|
check() {
|
|
python3 -m pytest --deselect=tests/test_adapter.py --deselect=tests/test_redis.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
0194bf4f01e7a29d4211495dc5fead9d4bd5bc1b791d25ff38ad28960a229a9bcdbaa7e6d3b5a4105eef6c9aa159459d6529c2615df113e7ec1ae93aac5cce6c py3-logutils-0.3.5.tar.gz
|
|
ff40effe015ce63f5018122497f2a4ab9ee7f4dd947b3c50725cfb42fe38a8ee6cf591e560a32ac638972dfb63c0b9bafd6f8e9fe58c1f4fa80dd1249dbfa3e5 test-assertEqual.patch
|
|
"
|