1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_{6,7}} )
8 DESCRIPTION="Python SNMP library"
9 HOMEPAGE="http://snmplabs.com/pysnmp/ https://pypi.org/project/pysnmp/"
10 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
18 dev-python/setuptools[${PYTHON_USEDEP}]
19 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
22 >=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}]
23 dev-python/pysmi[${PYTHON_USEDEP}]
25 dev-python/pycryptodome[${PYTHON_USEDEP}]
26 dev-python/pycrypto[${PYTHON_USEDEP}]
30 python_compile_all() {
34 touch docs/source/conf.py
39 python_install_all() {
40 use doc && local HTML_DOCS=( docs/build/html/* )
42 use examples && dodoc -r examples/* docs/mibs
44 distutils-r1_python_install_all
48 elog "You may also be interested in the following packages: "
49 elog "dev-python/pysnmp-apps - example programs using pysnmp"
50 elog "dev-python/pysnmp-mibs - IETF and other mibs"
51 elog "dev-python/pysmi - to dump MIBs in python format"