mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
main/py3-roman-numerals: new aport
https://pypi.org/project/roman-numerals/ A library for manipulating well-formed Roman numerals.
This commit is contained in:
parent
ba59dc395b
commit
7c7c1b5102
1 changed files with 40 additions and 0 deletions
40
main/py3-roman-numerals/APKBUILD
Normal file
40
main/py3-roman-numerals/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
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
|
||||
"
|
Loading…
Add table
Add a link
Reference in a new issue