mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 02:35:23 +03:00
32 lines
979 B
Text
32 lines
979 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.13
|
|
pkgrel=0
|
|
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-nose"
|
|
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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="91bc476c0fec49627b772c43f031bcdfea044385256817d76a2fcff3aa76f26e85d308aab5262a682d54f67a1851907074b21d260e687f81c733326c40a0e0cf python-stdnum-1.13.tar.gz"
|