mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
35 lines
1,020 B
Text
35 lines
1,020 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-python-stdnum
|
|
_pkgname=python-stdnum
|
|
pkgver=1.19
|
|
pkgrel=1
|
|
pkgdesc="Python module to handle standardized numbers and codes"
|
|
url="https://arthurdejong.org/python-stdnum"
|
|
arch="noarch"
|
|
license="LGPL-2.0-or-later"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-coverage py3-nose"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-stdnum" # Backwards compatibility
|
|
provides="py-stdnum=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
nosetests
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
02c56aea710a9a02e14160840fbd45751cd00f1a49b1d046124945ba92e2dd3377006f44a146030522d09b92f809ceb4d1e3589ef3d9c9302f7674a79602ef07 python-stdnum-1.19.tar.gz
|
|
"
|