aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-luhn/APKBUILD
blob: 5ae8320d5fd3c78c3e60e12688b5c6ed0674d722 (plain) (blame)
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
32
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-luhn
_pkgname=luhn
pkgver=0.2.0
pkgrel=4
pkgdesc="Generate and verify Luhn check digits"
url="https://github.com/mmcloughlin/luhn"
arch="noarch"
license="MIT"
depends="py3-amqp"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$_pkgname-$pkgver.tar.gz::https://github.com/mmcloughlin/luhn/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-luhn" # Backwards compatibility
provides="py-luhn=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	nosetests -v
}

package() {
        python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="43732155358352fa25ca4c25e59a40efd98250e4296f75cdd1d2050a79a1ac26110f024a585159a626784dbfd4b6def3c85b2594c6ecf4e8b74a9cd165870c78  luhn-0.2.0.tar.gz"