Bug 2061832 - RFE: drop use of python-crypto
Summary: RFE: drop use of python-crypto
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-matrix-nio
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-08 15:29 UTC by Paul Howarth
Modified: 2022-03-08 16:30 UTC (History)
2 users (show)

Fixed In Version: python-matrix-nio-0.19.0-3.fc37
Clone Of:
Environment:
Last Closed: 2022-03-08 16:30:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.