mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
52 lines
1 KiB
Text
52 lines
1 KiB
Text
# Contributor: Andy Hawkins <andy@gently.org.uk>
|
|
# Maintainer: Andy Hawkins <andy@gently.org.uk>
|
|
pkgname=py3-inform
|
|
pkgver=1.27
|
|
pkgrel=1
|
|
pkgdesc="Print & Logging Utilities"
|
|
url="https://inform.readthedocs.io/"
|
|
arch="noarch"
|
|
license="GPL-3.0-or-later"
|
|
depends="
|
|
python3
|
|
py3-arrow
|
|
py3-six
|
|
"
|
|
makedepends="
|
|
py3-flit-core
|
|
py3-gpep517
|
|
"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-hypothesis
|
|
"
|
|
source="https://github.com/KenKundert/inform/archive/v$pkgver/inform-v$pkgver.tar.gz"
|
|
builddir="$srcdir/inform"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# One of the tests fails if run in an inform-$pkgver directory
|
|
|
|
mv "$srcdir/inform-$pkgver" "$srcdir/inform"
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/inform-$pkgver*-py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
87a29592019b53989dc231fe216455d4ec21975c25516ea6c6db4db6fd46465f12f7bd3720265e0450c9f0e93a1392bd0b4c30941adab536c3ecbbfa7fb92461 inform-v1.27.tar.gz
|
|
"
|