blob: 38343b0f05fc5b0e7cdbbaedd9c55586b38f8853 (
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: Aseem Athale <athaleaseem@gmail.com>
_base=usaddress
pkgname=python-${_base}
pkgver=0.5.11
pkgrel=1
pkgdesc="A python library for parsing unstructured United States address strings into address components."
arch=('any')
url="https://github.com/datamade/${_base}"
license=(MIT)
depends=('python' 'python-crfsuite' 'python-probableparsing')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-parserator')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/v${pkgver}.tar.gz)
sha512sums=('963f2c9c0309a07911c2cb219d4ff7a09253cb0fbd443bb6256b70f39d8c663163e8195672056c3aaf20c57a67490410475903eb45736fb0f8415459f662cd0b')
build() {
cd "${_base}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_base}-${pkgver}"
python -m pytest
}
package() {
cd "${_base}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|