Bug 2061884

Summary: RFE: drop use of python-crypto
Product: [Fedora] Fedora Reporter: Paul Howarth <paul>
Component: yokadiAssignee: Fabian Affolter <mail>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mail, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yokadi-1.2.0-3.fc37 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 22:22:41 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 16:43:41 UTC
Description of problem:

yokadi 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.

The only use of python-crypto that I can see is this in yokadi/update/update11to12.py:

try:
    from Crypto.Cipher import AES as CRYPTO_ALGO
except ImportError:
    CRYPTO_ALGO = None

If you change it to this instead:

try:
    from Cryptodome.Cipher import AES as CRYPTO_ALGO
except ImportError:
    CRYPTO_ALGO = None

then you could depend on python3-pycryptodomex (which is maintained) rather than python3-crypto.

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

Comment 1 Fedora Update System 2022-03-10 22:21:52 UTC
FEDORA-2022-54f7e7e92c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-54f7e7e92c

Comment 2 Fedora Update System 2022-03-10 22:22:41 UTC
FEDORA-2022-54f7e7e92c has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.