mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
https://pypi.org/project/roman-numerals/ A library for manipulating well-formed Roman numerals.
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
maintainer="Fabricio Silva <hi@fabricio.dev>"
|
|
pkgname=py3-roman-numerals
|
|
_pkgname=roman-numerals
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
pkgdesc="Integer to Roman numerals converter"
|
|
url="https://pypi.org/project/roman-numerals"
|
|
arch="noarch"
|
|
license="0BSD OR CC0-1.0"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-flit-core"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/AA-Turner/roman-numerals/archive/v$pkgver/roman-numerals-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver/python
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# upstream issue https://github.com/AA-Turner/roman-numerals/issues/11
|
|
# copy licence file from parent dir
|
|
cp ../LICENCE* ./
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
019777a4828a4c536d31550d9dfb8b4a487403fd3fb9aa5e13837ad3d9046489d689d8b11b13031e9f52292358e9609a08ca33ef5ee9da8b4171926540076784 roman-numerals-3.1.0.tar.gz
|
|
"
|