2023-03-01 23:37:51 +00:00

40 lines
1.1 KiB
Plaintext

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-humanize
_pkgname=humanize
pkgver=4.6.0
pkgrel=1
pkgdesc="Python humanize functions"
options="!check" # No tests are actually run
url="https://pypi.org/project/humanize"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs"
checkdepends="py3-mock py3-freezegun py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/python-humanize/humanize/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces=py-humanize # Backwards compatibility
provides=py-humanize=$pkgver-r$pkgrel # Backwards compatibility
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/humanize*.whl
}
sha512sums="
589b20f79127dccaf4c89973d610e8c868b4bd809ba087ef93d45dc76451fc74fb7e1a60aaf1d932872724304896587433ac04f959ff3c1084b5c62482b761c2 humanize-4.6.0.tar.gz
"