aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ipaddress/APKBUILD
blob: f9d0a5977ae9b0b0a4c8080b954bc7ad124134ac (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-ipaddress
_pkgname=ipaddress
pkgver=1.0.23
pkgrel=1
pkgdesc="IPv4/IPv6 manipulation library"
url="https://github.com/phihag/ipaddress"
arch="noarch"
license="Python-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-ipaddress" # Backwards compatibility
provides="py-ipaddress=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="340e2a8698df1868038f55889671442eba17f06ec3f493759d8d0a9bf406eefbe1f67c14ca616f52e5bf2280942dcece7e89fb19de0923bee1ee20e60f48896e  ipaddress-1.0.23.tar.gz"