Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/py-rsa40 security/py-rsa40: re-import py-rsa-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8cc03be2b4e
branches:  trunk
changeset: 437813:f8cc03be2b4e
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Sep 01 04:06:11 2020 +0000

description:
security/py-rsa40: re-import py-rsa-4.0 for Python 2.x

Python-RSA is a pure-Python RSA implementation. It supports encryption
and decryption, signing and verifying signatures, and key generation
according to PKCS#1 version 1.5. It can be used as a Python library
as well as on the commandline.

This package contains the last version supported by Python 2.x.

diffstat:

 security/py-rsa40/ALTERNATIVES           |   6 +++
 security/py-rsa40/DESCR                  |   6 +++
 security/py-rsa40/Makefile               |  30 +++++++++++++++
 security/py-rsa40/PLIST                  |  61 ++++++++++++++++++++++++++++++++
 security/py-rsa40/distinfo               |   7 +++
 security/py-rsa40/patches/patch-setup.py |  17 ++++++++
 6 files changed, 127 insertions(+), 0 deletions(-)

diffs (151 lines):

diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/ALTERNATIVES    Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,6 @@
+bin/pyrsa-decrypt @PREFIX@/bin/pyrsa-decrypt-@PYVERSSUFFIX@
+bin/pyrsa-encrypt @PREFIX@/bin/pyrsa-encrypt-@PYVERSSUFFIX@
+bin/pyrsa-keygen @PREFIX@/bin/pyrsa-keygen-@PYVERSSUFFIX@
+bin/pyrsa-priv2pub @PREFIX@/bin/pyrsa-priv2pub-@PYVERSSUFFIX@
+bin/pyrsa-sign @PREFIX@/bin/pyrsa-sign-@PYVERSSUFFIX@
+bin/pyrsa-verify @PREFIX@/bin/pyrsa-verify-@PYVERSSUFFIX@
diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/DESCR   Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,6 @@
+Python-RSA is a pure-Python RSA implementation. It supports encryption
+and decryption, signing and verifying signatures, and key generation
+according to PKCS#1 version 1.5. It can be used as a Python library
+as well as on the commandline.
+
+This package contains the last version supported by Python 2.x.
diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/Makefile        Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2020/09/01 04:06:11 wiz Exp $
+
+DISTNAME=      rsa-4.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    security python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=r/rsa/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/sybrenstuvel/python-rsa
+COMMENT=       Pure-Python RSA implementation (for Python 2.x)
+LICENSE=       apache-2.0
+
+DEPENDS+=      ${PYPKGPREFIX}-asn1>=0.1.3:../../security/py-asn1
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+
+PYTHON_VERSIONS_ACCEPTED=      27
+
+USE_LANGUAGES= # none
+
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+               ${MV} pyrsa-decrypt pyrsa-decrypt-${PYVERSSUFFIX} && \
+               ${MV} pyrsa-encrypt pyrsa-encrypt-${PYVERSSUFFIX} && \
+               ${MV} pyrsa-keygen pyrsa-keygen-${PYVERSSUFFIX} && \
+               ${MV} pyrsa-priv2pub pyrsa-priv2pub-${PYVERSSUFFIX} && \
+               ${MV} pyrsa-sign pyrsa-sign-${PYVERSSUFFIX} && \
+               ${MV} pyrsa-verify pyrsa-verify-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/PLIST   Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,61 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/01 04:06:11 wiz Exp $
+bin/pyrsa-decrypt-${PYVERSSUFFIX}
+bin/pyrsa-encrypt-${PYVERSSUFFIX}
+bin/pyrsa-keygen-${PYVERSSUFFIX}
+bin/pyrsa-priv2pub-${PYVERSSUFFIX}
+bin/pyrsa-sign-${PYVERSSUFFIX}
+bin/pyrsa-verify-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/rsa/__init__.py
+${PYSITELIB}/rsa/__init__.pyc
+${PYSITELIB}/rsa/__init__.pyo
+${PYSITELIB}/rsa/_compat.py
+${PYSITELIB}/rsa/_compat.pyc
+${PYSITELIB}/rsa/_compat.pyo
+${PYSITELIB}/rsa/asn1.py
+${PYSITELIB}/rsa/asn1.pyc
+${PYSITELIB}/rsa/asn1.pyo
+${PYSITELIB}/rsa/cli.py
+${PYSITELIB}/rsa/cli.pyc
+${PYSITELIB}/rsa/cli.pyo
+${PYSITELIB}/rsa/common.py
+${PYSITELIB}/rsa/common.pyc
+${PYSITELIB}/rsa/common.pyo
+${PYSITELIB}/rsa/core.py
+${PYSITELIB}/rsa/core.pyc
+${PYSITELIB}/rsa/core.pyo
+${PYSITELIB}/rsa/key.py
+${PYSITELIB}/rsa/key.pyc
+${PYSITELIB}/rsa/key.pyo
+${PYSITELIB}/rsa/machine_size.py
+${PYSITELIB}/rsa/machine_size.pyc
+${PYSITELIB}/rsa/machine_size.pyo
+${PYSITELIB}/rsa/parallel.py
+${PYSITELIB}/rsa/parallel.pyc
+${PYSITELIB}/rsa/parallel.pyo
+${PYSITELIB}/rsa/pem.py
+${PYSITELIB}/rsa/pem.pyc
+${PYSITELIB}/rsa/pem.pyo
+${PYSITELIB}/rsa/pkcs1.py
+${PYSITELIB}/rsa/pkcs1.pyc
+${PYSITELIB}/rsa/pkcs1.pyo
+${PYSITELIB}/rsa/pkcs1_v2.py
+${PYSITELIB}/rsa/pkcs1_v2.pyc
+${PYSITELIB}/rsa/pkcs1_v2.pyo
+${PYSITELIB}/rsa/prime.py
+${PYSITELIB}/rsa/prime.pyc
+${PYSITELIB}/rsa/prime.pyo
+${PYSITELIB}/rsa/randnum.py
+${PYSITELIB}/rsa/randnum.pyc
+${PYSITELIB}/rsa/randnum.pyo
+${PYSITELIB}/rsa/transform.py
+${PYSITELIB}/rsa/transform.pyc
+${PYSITELIB}/rsa/transform.pyo
+${PYSITELIB}/rsa/util.py
+${PYSITELIB}/rsa/util.pyc
+${PYSITELIB}/rsa/util.pyo
diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/distinfo        Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/09/01 04:06:11 wiz Exp $
+
+SHA1 (rsa-4.0.tar.gz) = 8a68dcee7bd2a7727c253b9ed2820cd1b5b9241a
+RMD160 (rsa-4.0.tar.gz) = 806f139f5b69af170c7a04977665cdf8d4c046c7
+SHA512 (rsa-4.0.tar.gz) = e11106741cc4275246c986d39b3f028b5a4df6fbffdd08a78072ac3d3a9a7ade7a39789c504a2705f54d858a9bdbf03981251f32f9c45baba71e4a986e14b24e
+Size (rsa-4.0.tar.gz) = 37385 bytes
+SHA1 (patch-setup.py) = 8335daf31dd1acd8b47512b647f83196cfaa38d5
diff -r 626652b72338 -r f8cc03be2b4e security/py-rsa40/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-rsa40/patches/patch-setup.py  Tue Sep 01 04:06:11 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-setup.py,v 1.1 2020/09/01 04:06:11 wiz Exp $
+
+Pull in fix from https://github.com/sybrenstuvel/python-rsa/pull/122/files
+
+--- setup.py.orig      2018-09-16 11:39:35.000000000 +0000
++++ setup.py
+@@ -15,8 +15,9 @@
+ #  limitations under the License.
+ 
+ from setuptools import setup
++from io import open
+ 
+-with open('README.md') as f:
++with open('README.md', 'r', encoding='utf-8') as f:
+     long_description = f.read()
+ 
+ if __name__ == '__main__':



Home | Main Index | Thread Index | Old Index