aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-snmp/APKBUILD
blob: def8d8cb9e78570a418dd09de8e0c62c189b8542 (plain) (blame)
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
31
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-snmp
_pkgname=pysnmp
pkgver=4.4.12
pkgrel=0
pkgdesc="Python3 SNMP v1/v2c/v3 engine"
url="http://snmplabs.com/pysnmp/index.html"
arch="noarch"
license="BSD-2-Clause"
options="!check"
depends="python3 py3-asn1 py3-pycryptodome"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	remove-bogus-check.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
	python3 setup.py build
}

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

sha512sums="f22a346443cb07beea594b67b09ce587f5602a439c68148b8a655a0d2c769893848bfcfdd47b5f0002f48c650bf3a39186edddf977fb3ad2cc0d124e66f2ce94  pysnmp-4.4.12.tar.gz
7976030882c78154a8db4250f1bcb634e74f7f7bd2ec5002dee89605b2cc1845fe92287ea22a2f0eb564fd8c2f3efdcac3370bafadb9eb54925646d6f57e677a  remove-bogus-check.patch"