blob: c19d3ae2fd0ecac6aede038081d334b52e03c6e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Tomas S. <me+aur at wereii.cz>
# Contributor: Simon Perry <aur [at] sanxion [dot] net>
# Contributor: Aaron DeVore <aaron.devore@gmail.com>
pkgname=python-roman
pkgver=4.2
pkgrel=3
pkgdesc="Integer to Roman numerals converter"
url="https://github.com/zopefoundation/roman"
depends=(python)
makedepends=(python-build python-installer python-wheel python-setuptools)
license=("PSF")
arch=("any")
source=("roman-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
sha256sums=('1b7daf7e6df4372630bb38e67d439368258d0c1f0f0708e6be9296b91c0efee2')
build() {
cd "${srcdir}/roman-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/roman-${pkgver}/src"
python -m unittest tests.py
}
package() {
cd "${srcdir}/roman-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|