blob: 7de0289a13658f789b4867565a668edc3928c15e (
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
|
# Maintainer: userbyte <contact@userbyte.xyz>
_pkgname=ipinfo
pkgname=python-ipinfo
pkgver=5.0.0
pkgrel=2
pkgdesc="Official Python library for IPInfo"
url="https://github.com/ipinfo/python"
depends=('python' 'python-requests' 'python-cachetools' 'python-aiohttp')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
license=('Apache')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha256sums=('17d8b9db7a72991a4d0c91a0bfbaed80ea40eb251bb97ecc452a70e73d47613d')
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
chmod -R 655 ${pkgdir}/usr/lib/python*/site-packages/$_pkgname*
}
|