FS#72391 - [python-pysnmp] <5 requires python-pycryptodomex

Attached to Project: Community Packages
Opened by Henry-Joseph (ryolait) - Monday, 11 October 2021, 12:22 GMT
Last edited by Torsten Keßler (tpkessler) - Monday, 04 September 2023, 11:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`python-pysnmp<5` requires `python-pycryptodomex`.

Upstream does not require it anymore in master branch (will be released in 5.*, if I read commit 24a798876655 correctly). But it is still required in 4.4.12 :

$ curl -sL 'https://github.com/etingof/pysnmp/archive/v4.4.12/pysnmp-v4.4.12.tar.gz' | tar -xzO pysnmp-4.4.12/requirements.txt
pysmi
pycryptodomex
pyasn1>=0.2.3

Package version(s): python-pysnmp=4.4.12-3 python-pycryptodomex=3.10.1-1

Steps to reproduce:

Without `python-pycryptodomex` installed:

$ python
Python 3.9.7 (default, Aug 31 2021, 13:28:12)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require("pysnmp")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycryptodomex' distribution was not found and is required by pysnmp

After `pacman -S --asdeps python-pycryptodomex`, all is working fine:

$ python
Python 3.9.7 (default, Aug 31 2021, 13:28:12)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
>>> pkg_resources.require("pysnmp")
[pysnmp 4.4.12 (/usr/lib/python3.9/site-packages), pyasn1 0.4.8 (/usr/lib/python3.9/site-packages), pycryptodomex 3.10.1 (/usr/lib/python3.9/site-packages), pysmi 0.3.4 (/usr/lib/python3.9/site-packages), ply 3.11 (/usr/lib/python3.9/site-packages)]
This task depends upon

Closed by  Torsten Keßler (tpkessler)
Monday, 04 September 2023, 11:45 GMT
Reason for closing:  Fixed
Comment by Marcell Meszaros (MarsSeed) - Sunday, 04 June 2023, 00:17 GMT
Such niche packages for which the handful of Arch maintainers are too stretched thin to be able to pay attention to within a reasonable timeframe (e.g. 1-2-3 months instead of 1-2-3 years) should better be dropped to AUR.

Especially when the issue reported in 2021 is a basic packaging error, requiring a one-line fix in PKGBUILD.

Loading...