blob: 2357055b10d653f3c144ddd47a33562709320e7f (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# shellcheck disable=SC2034,SC2154,SC2164
# Maintainer: Klaus Alexander Seistrup <$(echo 0x1fd+d59decfa=40 | tr 0-9+a-f=x ka-i@p-u.l)>
# Contributor: JustKidding <jk@vin.ovh>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
# Contributor: Alex Merry <dev@randomguy3.me.uk>
pkgname=python-stdnum
pkgver=1.20
pkgrel=4
pkgdesc='Handle, parse and validate more than 200 different standard numbers (EAN, IBAN, ISBN, etc.)'
arch=('any')
url='https://arthurdejong.org/python-stdnum'
license=('LGPL-2.1-or-later') # SPDX-License-Identifier: LGPL-2.1-or-later
depends=(
'python'
'python-lxml'
'python-requests'
'python-setuptools'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
)
optdepends=(
'python-pysimplesoap: fallback SOAP implementation'
'python-suds: second recommended SOAP implementation'
'python-zeep: recommended SOAP implementation'
)
source=("$url/$pkgname-$pkgver.tar.gz")
sha256sums=('ad2a2cf2eb025de408210235f36b4ae31252de3186240ccaa8126e117cb82690')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm0644 -t "$pkgdir/usr/share/doc/$pkgname" \
ChangeLog *.md
}
# eof
|