6e001f15d3
Version 4.0: - Removed deprecated modules: - rsa.varblock - rsa.bigfile - rsa._version133 - rsa._version200 - Removed CLI commands that use the VARBLOCK/bigfile format. - Ensured that PublicKey.save_pkcs1() and PrivateKey.save_pkcs1() always return bytes. - Dropped support for Python 2.6 and 3.3. - Dropped support for Psyco. - Miller-Rabin iterations determined by bitsize of key. - Added function rsa.find_signature_hash() to return the name of the hashing algorithm used to sign a message. rsa.verify() now also returns that name, instead of always returning True. - Add support for SHA-224 for PKCS1 signatures. - Transitioned from requirements.txt to Pipenv for package management.
28 lines
934 B
Makefile
28 lines
934 B
Makefile
# $NetBSD: Makefile,v 1.7 2018/10/07 10:41:52 adam Exp $
|
|
|
|
DISTNAME= rsa-4.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= security python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=r/rsa/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/sybrenstuvel/python-rsa
|
|
COMMENT= Pure-Python RSA implementation
|
|
LICENSE= apache-2.0
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-asn1>=0.1.3:../../security/py-asn1
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
|
|
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"
|