dev-python/pysnmp: enable py3.10, use optfeature

Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-08-05 23:07:15 +03:00
committed by Michał Górny
parent 6cb350092e
commit c2d30fe3b6
2 changed files with 11 additions and 13 deletions

View File

@@ -3,8 +3,8 @@
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 optfeature
DESCRIPTION="Python SNMP library"
HOMEPAGE="https://pypi.org/project/pysnmp/ https://github.com/etingof/pysnmp"
@@ -38,8 +38,7 @@ 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"
optfeature "Example programs using pysnmp" dev-python/pysnmp-apps
optfeature "IETF and other mibs" dev-python/pysnmp-mibs
optfeature "Dump MIBs in python format" dev-python/pysmi
}

View File

@@ -1,10 +1,10 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1 git-r3
PYTHON_COMPAT=( python3_{7..10} )
inherit distutils-r1 git-r3 optfeature
DESCRIPTION="Python SNMP library"
HOMEPAGE="https://pypi.org/project/pysnmp/ https://github.com/etingof/pysnmp"
@@ -37,8 +37,7 @@ 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"
optfeature "Example programs using pysnmp" dev-python/pysnmp-apps
optfeature "IETF and other mibs" dev-python/pysnmp-mibs
optfeature "Dump MIBs in python format" dev-python/pysmi
}