commit: 512c0d915a68ec15f6345d842f174428039b865c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 27 02:26:17 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 27 02:51:03 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=512c0d91
dev-python/pysmi: Bump to 1.6.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pysmi/Manifest | 1 +
dev-python/pysmi/pysmi-1.6.1.ebuild | 48 +++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+)
diff --git a/dev-python/pysmi/Manifest b/dev-python/pysmi/Manifest
index 011b54186afd..b3f8e4bd4211 100644
--- a/dev-python/pysmi/Manifest
+++ b/dev-python/pysmi/Manifest
@@ -1 +1,2 @@
DIST pysmi-1.5.9.tar.gz 131529 BLAKE2B
d3ef2a848815b1d33f9f545a002c2e7a04ddf97979974c53dad4e6b7372369820c011a3996592ed3ad8625b306cc35bafb5fb9230d6155a64ecc53803e5db973
SHA512
3f580b96d677acd5ca5b107186269ee0ef6673326746cc3f09d8fb5fe549fa1456783f33c5213c288c783190220ae30ef2cfb71e9947804abbee38d5792bfa09
+DIST pysmi-1.6.1.gh.tar.gz 188037 BLAKE2B
58951f8743e7cd9e8369d237f7bc59152d5553e43a24f03bcaf73305b654a46f4acf627e55464623dfde3d8da93b4430b5d7bdc96478ef74c0ac7192d201ddad
SHA512
d3c8fc08e8221910375e6fd68700a96b8ce98d6818ae825a181d6b0c45df745ae268a9dcb3dca9c0c24b973a12c4db090b0aa38b1fd2f6723fb68cbe67ff89c7
diff --git a/dev-python/pysmi/pysmi-1.6.1.ebuild
b/dev-python/pysmi/pysmi-1.6.1.ebuild
new file mode 100644
index 000000000000..f11ae69b42b0
--- /dev/null
+++ b/dev-python/pysmi/pysmi-1.6.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 2017-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Pure-Python implementation of SNMP/SMI MIB parsing and conversion
library"
+HOMEPAGE="
+ https://github.com/lextudio/pysmi/
+ https://pypi.org/project/pysmi/
+"
+# 1.6.1 removed tests
+SRC_URI="
+ https://github.com/lextudio/pysmi/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
+
+RDEPEND="
+ >=dev-python/jinja2-3.1.3[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.11[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ >=dev-python/pysnmp-7.1.16[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # incompatibility with pysnmp >= 7
+
tests/test_objecttype_smiv2_pysnmp.py::ObjectTypeBitsTestCase::testObjectTypeSyntax
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}