blob: 43cd3898ec2f4d0a36e3bf8de7c2c5500ed96d52 (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-ipaddr
_pkgname=ipaddr
pkgver=2.2.0
pkgrel=4
pkgdesc="Python3 IP address manipulation library"
url="https://github.com/google/ipaddr-py"
arch="noarch"
license="Apache-2.0 PSF"
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-ipaddr" # Backwards compatibility
provides="py-ipaddr=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 ipaddr_test.py
}
package() {
python3 setup.py install --root="$pkgdir"
}
sha512sums="5adb117c44e6e5dbdb9e96543aa7a34f35b4a4ec9baa163a25448058c34091bf4019d24f0250928291e4d4bc97dcdf75865daef739e2d94f98cc584e6e6c50dd ipaddr-2.2.0.tar.gz"
|