security/py-fastecdsa: convert to MODPY_PYBUILD, ok sthen
To work around import errors, the tests need to be run from fastecdsa/tests with argument --pyargs fastecdsa, see [1] for details. Also move the RFC to a place where tests will be able to pick them up. [1]: https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions
This commit is contained in:
parent
41efcfe140
commit
29af7f7fbc
@ -1,6 +1,7 @@
|
||||
COMMENT = fast elliptic curve digital signatures
|
||||
|
||||
MODPY_EGG_VERSION = 2.2.3
|
||||
REVISION = 0
|
||||
|
||||
DISTNAME = fastecdsa-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
@ -15,7 +16,7 @@ MAINTAINER = Theo Buehler <tb@openbsd.org>
|
||||
# Avoid fetching test cases from the internet during 'make test'
|
||||
MASTER_SITES0 = https://tools.ietf.org/rfc/
|
||||
DISTFILES += rfc6979.txt:0
|
||||
EXTRACT_CASES = *.txt) cp ${FULLDISTDIR}/$$archive ${WRKSRC};;
|
||||
EXTRACT_CASES = *.txt) cp ${FULLDISTDIR}/$$archive ${MODPY_TEST_DIR};;
|
||||
|
||||
# Unlicense
|
||||
PERMIT_PACKAGE = Yes
|
||||
@ -25,7 +26,10 @@ WANTLIB = gmp pthread
|
||||
MODULES = lang/python
|
||||
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
MODPY_PYBUILD = setuptools
|
||||
MODPY_TEST_DIR = ${WRKSRC}/fastecdsa/tests
|
||||
MODPY_PYTEST_ARGS = --pyargs fastecdsa
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR = python3
|
||||
|
||||
|
@ -1,17 +1,25 @@
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/LICENSE
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/METADATA
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/RECORD
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/WHEEL
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa-${MODPY_EGG_VERSION}.dist-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}benchmark.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}benchmark.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}curve.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}curve.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}ecdsa.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}ecdsa.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}keys.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}keys.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}point.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}point.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
@so lib/python${MODPY_VERSION}/site-packages/fastecdsa/_ecdsa.${MODPY_PYC_MAGIC_TAG}so
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/benchmark.py
|
||||
@ -21,11 +29,17 @@ lib/python${MODPY_VERSION}/site-packages/fastecdsa/ecdsa.py
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}asn1.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}asn1.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}der.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}der.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}pem.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}pem.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}sec1.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}sec1.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/${MODPY_PYCACHE}util.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/asn1.py
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/encoding/der.py
|
||||
@ -37,24 +51,40 @@ lib/python${MODPY_VERSION}/site-packages/fastecdsa/point.py
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_brainpool_ecdh.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_brainpool_ecdh.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_key_export_import.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_key_export_import.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_key_recovery.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_key_recovery.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_keygen.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_keygen.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_nonce_generation.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_nonce_generation.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_p256_ecdsa.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_p256_ecdsa.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_point.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_point.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_prehashed.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_prehashed.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_prime_field_curve_math.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_prime_field_curve_math.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_rfc6979_ecdsa.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_rfc6979_ecdsa.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_whitespace_parsing.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_whitespace_parsing.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_whycheproof_vectors.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/${MODPY_PYCACHE}test_whycheproof_vectors.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}test_der.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}test_der.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}test_sec1.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/${MODPY_PYCACHE}test_sec1.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/test_der.py
|
||||
lib/python${MODPY_VERSION}/site-packages/fastecdsa/tests/encoding/test_sec1.py
|
||||
|
Loading…
Reference in New Issue
Block a user