summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52d87992a5b6b2883e989e546f7edc5a154a8fc6 (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
# Maintainer: Andrej Radović <r.andrej@gmail.com>
pkgname=python-isocodes
_name=${pkgname#python-}
pkgver=2024.2.2
pkgrel=1
pkgdesc="provides lists of various ISO standards (e.g. country, language, language scripts, and currency names) in one place"
url="https://github.com/sparkmicro/isocodes-api/"
# the upstream doesn't know how to separate dev and prod deps; this has 0 deps
# beyond Python
depends=(
    'python'
)
makedepends=(python-build python-installer python-wheel python-hatchling)
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('50b747edb5f4e1e7bb740e972ec5062b9819fc1fd417c33ee6334436a3367f6a')

build() {
	cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}