diff --git a/dev-python/pysnmp/Manifest b/dev-python/pysnmp/Manifest index 64efad4985ccd..22e48d8f668e3 100644 --- a/dev-python/pysnmp/Manifest +++ b/dev-python/pysnmp/Manifest @@ -1,2 +1,3 @@ DIST pysnmp-7.1.27.gh.tar.gz 476101 BLAKE2B 37c7e51ad115b0c166cc2f84ddcbaab965ecf2db16dd464be56e3acf214ef3089a3586d49e6765528a8ff8298a08adb495898cfa8fff2e4922e5d1d6b219c0ba SHA512 0e9f720e5c097692466f03e3c28aea1a8686c8061a46e08014bedca1de1a505c1fb74b8876241386e93cbc5aeefae5668fef7d64e201e76961d0ff90f4c84e1a DIST pysnmp-7.1.28.gh.tar.gz 497049 BLAKE2B 70305ce46753e5b619412d80fc24d558e6a291c89141a5ad6075fafa3cc204e2f657bdef98ea77ff5b3c52026b6450b4371c382681fa87fb2bcba8f7400d4d6c SHA512 612489b07cecd1ccd707633c8b4d695712e4fb0ed7d4b3ebf63663c463fb273752f987ae4fff9c69c6501b68f47216abb8126d57e1a27a9823952edf59377144 +DIST pysnmp-7.1.29.gh.tar.gz 498327 BLAKE2B 091f8fb3121573858ed36b387d9e90f27d2d4b8cfd10c4f500d8f35e69b322824dd741837cd6c388568357694c09e94249bbb1cdb5133d89976c4666aced9f37 SHA512 53eb9657590fe2fbd3af956177200ee51df7d9f6d1eab51ea689b47a7a4181cc0ff3cfae229be6e8ec5c2ee18acb578ca412c244196ceab410d09413472bd05a diff --git a/dev-python/pysnmp/pysnmp-7.1.29.ebuild b/dev-python/pysnmp/pysnmp-7.1.29.ebuild new file mode 100644 index 0000000000000..3212062ac2d8c --- /dev/null +++ b/dev-python/pysnmp/pysnmp-7.1.29.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit-core +PYTHON_COMPAT=( python3_{12..14} ) + +inherit distutils-r1 + +DESCRIPTION="Python SNMP library" +HOMEPAGE=" + https://pypi.org/project/pysnmp/ + https://github.com/lextudio/pysnmp/ +" +SRC_URI=" + https://github.com/lextudio/pysnmp/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86" +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND=" + >=dev-python/cryptography-50.0.0[${PYTHON_USEDEP}] + >=dev-python/pyasn1-0.6.3[${PYTHON_USEDEP}] + >=dev-python/pysmi-2.0.0[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=( pytest-{asyncio,rerunfailures} ) +# flaky because of timeouts +EPYTEST_RERUNFAILURES=5 +distutils_enable_tests pytest +# TODO +# distutils_enable_sphinx docs/source dev-python/furo dev-python/sphinx-copybutton dev-python/sphinx-sitemap + +python_test() { + # see .github/workflows/build-test.yml + mibdump --generate-mib-texts NET-SNMP-EXAMPLES-MIB || die + mibdump --generate-mib-texts IF-MIB || die + mibdump --generate-mib-texts LEXTUDIO-TEST-MIB || die + mibdump --generate-mib-texts CISCO-ENHANCED-IPSEC-FLOW-MIB.py || die + mibdump --generate-mib-texts TCP-MIB || die + + epytest +}