Commit 9b4f3ef2 authored by Rene Ladan's avatar Rene Ladan
Browse files

devel/py-rauth: Remove expired port

2026-06-30 devel/py-rauth: No longer maintained upstream
parent 55e42119
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5474,3 +5474,4 @@ net/frr8||2026-06-30|Has expired: No longer maintained
net-mgmt/arts++||2026-06-30|Has expired: deprecated by upstream, broken
textproc/redisearch20|textproc/redisearch22|2026-06-30|Has expired: Redisearch 2.0 is no longer maintained use textproc/redisearch22 instead
japanese/man-doc||2026-06-30|Has expired: Abandoned, this manual is over 20 years old
devel/py-rauth||2026-06-30|Has expired: No longer maintained upstream
+0 −1
Original line number Diff line number Diff line
@@ -6033,7 +6033,6 @@
    SUBDIR += py-rapidfuzz-capi
    SUBDIR += py-ratelim
    SUBDIR += py-ratelimiter
    SUBDIR += py-rauth
    SUBDIR += py-raven
    SUBDIR += py-rchitect
    SUBDIR += py-re-assert

devel/py-rauth/Makefile

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
PORTNAME=	rauth
PORTVERSION=	0.7.2
PORTREVISION=	2
CATEGORIES=	devel www python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Python library for OAuth 1.0/a, 2.0, and Ofly consumers
WWW=		https://github.com/litl/rauth

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

DEPRECATED=		No longer maintained upstream
EXPIRATION_DATE=	2026-06-30

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=1.2.3:www/py-requests@${PY_FLAVOR}
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:devel/py-mock@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pycryptodome>0:security/py-pycryptodome@${PY_FLAVOR}

USES=		python
USE_GITHUB=	yes
GH_ACCOUNT=	litl
USE_PYTHON=	autoplist distutils nose

NO_ARCH=	yes

.include <bsd.port.mk>

devel/py-rauth/distinfo

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
SHA256 (litl-rauth-0.7.2_GH0.tar.gz) = 224dcc283c11b60a1cda0082836570338def1134a92b0d874046c3d0acb8d9aa
SIZE (litl-rauth-0.7.2_GH0.tar.gz) = 34688
+0 −29
Original line number Diff line number Diff line
commit 7fb3b7bf1a1869a52cf59ee3eb607d318e97265c
Author: John W. O'Brien <john@saltant.com>
Date:   Mon Jul 27 14:56:02 2020 -0400

    Support PyCryptodome as alternative to PyCrypto

--- rauth/oauth.py.orig	2015-11-05 16:01:31 UTC
+++ rauth/oauth.py
@@ -171,7 +171,8 @@ class RsaSha1Signature(SignatureMethod):
             from Crypto.Signature import PKCS1_v1_5 as p
             self.RSA, self.SHA, self.PKCS1_v1_5 = r, s, p
         except ImportError:  # pragma: no cover
-            raise NotImplementedError('PyCrypto is required for ' + self.NAME)
+            raise NotImplementedError('PyCrypto(dome) is required for '
+                                      + self.NAME)

     def sign(self,
              consumer_secret,
@@ -208,7 +209,9 @@ class RsaSha1Signature(SignatureMethod):
         # resolve the key
         if is_basestring(consumer_secret):
             consumer_secret = self.RSA.importKey(consumer_secret)
-        if not isinstance(consumer_secret, self.RSA._RSAobj):
+        valid_cls = (getattr(self.RSA, '_RSAobj', False)
+                     or getattr(self.RSA, 'RsaKey', False))
+        if not (valid_cls and isinstance(consumer_secret, valid_cls)):
             raise ValueError('invalid consumer_secret')

         # hash the string with RSA-SHA1
Loading