Bug 248307

Summary: devel/py-rauth: Add Cryptodome support (Break dependency on security/py-pycrypto)
Product: Ports & Packages Reporter: John W. O'Brien <john>
Component: Individual Port(s)Assignee: Muhammad Moinur Rahman <bofh>
Status: Closed FIXED    
Severity: Affects Some People CC: rene
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (koobs)
Hardware: Any   
OS: Any   
See Also: https://github.com/litl/rauth/issues/210
https://github.com/litl/rauth/pull/211
Attachments:
Description Flags
devel/py-rauth: Break dependency on security/py-pycrypto john: maintainer-approval?

Description John W. O'Brien 2020-07-27 19:15:00 UTC
Created attachment 216817 [details]
devel/py-rauth: Break dependency on security/py-pycrypto

Changelog
=========

*   Teach rauth.oauth to recognize the applicable internals of PyCryptodome's implementation of Crypto.PublicKey.RSA
*   Replace security/py-pycrypto with security/py-pycryptodome in TEST_DEPENDS


QA
==

portlint: OK
poudriere: OK -- testport on 12.1-RELEASE amd64 w/py27, py35, py36, py37 (default), and py38
nosetests: PASS


Notes
=====

Submitted upstream:

https://github.com/litl/rauth/issues/210
https://github.com/litl/rauth/pull/211
Comment 1 Rene Ladan freebsd_committer freebsd_triage 2022-03-07 19:54:55 UTC
Maintainer reset.
Comment 2 Rene Ladan freebsd_committer freebsd_triage 2022-12-31 00:44:34 UTC
Over to new maintainer.

@Moin, it looks like a similar but different fix was applied in 8c88b908be62f556910ef10e11458410492a990d ?
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-12-31 01:14:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f786734023235ec6cff1af08ff0d9c03c31e496

commit 9f786734023235ec6cff1af08ff0d9c03c31e496
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-12-31 01:08:34 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-12-31 01:13:26 +0000

    devel/py-rauth: Add Cryptodome support

    PR:             248307
    Reported by:    john@saltant.com

 devel/py-rauth/Makefile                          |  1 +
 devel/py-rauth/files/patch-rauth__oauth.py (new) | 29 ++++++++++++++++++++++++
 devel/py-rauth/files/patch-setup.py              |  2 +-
 3 files changed, 31 insertions(+), 1 deletion(-)
Comment 4 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-12-31 01:14:57 UTC
Somehow I missed this bug and had a different solution to the problem. However I have merged the changes accordingly.