# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-netlib
_pkgname=netlib
pkgver=0.16
pkgrel=0
pkgdesc="A Collection of network utility classes"
url="https://github.com/mitmproxy/netlib"
arch="noarch"
license="MIT"
options="!check"
depends="python2 py-openssl py-asn1"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build
}

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

sha512sums="7beb7fa8bde6fb994d15af770d8e0e006d1bdeb499f7f0fbff1466ae99212904ff065f7b2257d6576e7c257c52010baf4dea38fc43ac3fd9832e3e5be41c969f  netlib-0.16.tar.gz"
