Bug 2061832

Summary: RFE: drop use of python-crypto
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: python-matrix-nioAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gwync, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-matrix-nio-0.19.0-3.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-08 16:30:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Howarth 2022-03-08 15:29:17 UTC
Description of problem:

python-matrix-nio currently has a runtime dependency on python3-crypto, which I maintain in Fedora. Upstream of this package (https://www.pycrypto.org/) has long since stopped maintaining it and I would like to drop it from Fedora.

Upstream of python-matrix-nio has already switched to python-pycryptodome but this cannot currently be packaged in Fedora because it would conflict with python-crypto due to it using the same namespace. However, python-pycryptodomex, which uses the "Cryptodome" rather than the "Crypto" namespace is available in Fedora and could be used. In fact the current spec already tweaks the pyproject.toml to specify pycryptodomex rather than pycryptodome. To actually use pycryptodomex, it would be necessary to change a few imports in the code, basically like this:

sed -e 's/^from Crypto/from Cryptodome/'

and change the dependencies from python3-crypto to python3-pycryptodomex.

Please consider applying such a change in Fedora so that python-crypto gets nearer to being able to be retired.

Comment 1 Ankur Sinha (FranciscoD) 2022-03-08 16:09:41 UTC
Thanks for this, Paul. I'll update the package ASAP.

Comment 2 Fedora Update System 2022-03-08 16:27:23 UTC
FEDORA-2022-7e171574e1 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7e171574e1

Comment 3 Fedora Update System 2022-03-08 16:30:36 UTC
FEDORA-2022-7e171574e1 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.