blob: 17f3694d3f1c7972cec08f8f8a70e3faa821581e (
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pycountry
_pkgname=pycountry
pkgver=19.8.18
pkgrel=1
pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
url="https://pypi.org/project/pycountry"
arch="noarch"
license="LGPL-2.1-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-country py-pycountry" # Backwards compatibility
provides="py-country=$pkgver-r$pkgrel py-pycountry=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$builddir/build/lib" py.test-3 -v
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="39ba06629eeea55460424d06992ca5f1e5bf6168b219dc4880ec326f6aa0c92a4fdc54d4143a8b8bb1490149af793e760e291c6d704104a57ba91e88228ab669 pycountry-19.8.18.tar.gz"
|