You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/pysnmp/pysnmp-4.4.12-r1.ebuild

47 lines
1.1 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Python SNMP library"
HOMEPAGE="http://snmplabs.com/pysnmp/ https://pypi.org/project/pysnmp/ https://github.com/etingof/pysnmp"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~ia64 ppc ~sparc x86"
IUSE="doc examples"
RDEPEND="
>=dev-python/pyasn1-0.2.3[${PYTHON_USEDEP}]
dev-python/pysmi[${PYTHON_USEDEP}]
dev-python/pycryptodome[${PYTHON_USEDEP}]
"
distutils_enable_sphinx docs/source
python_prepare_all() {
touch docs/source/conf.py || die
distutils-r1_python_prepare_all
}
python_install_all() {
if use examples; then
docinto examples
dodoc -r examples/. docs/mibs
docompress -x /usr/share/doc/${PF}/examples
fi
distutils-r1_python_install_all
}
pkg_postinst() {
elog "You may also be interested in the following packages: "
elog "dev-python/pysnmp-apps - example programs using pysnmp"
elog "dev-python/pysnmp-mibs - IETF and other mibs"
elog "dev-python/pysmi - to dump MIBs in python format"
}