diff --git a/dev-python/pycryptodomex/ChangeLog b/dev-python/pycryptodomex/ChangeLog new file mode 100644 index 0000000..4d241fd --- /dev/null +++ b/dev-python/pycryptodomex/ChangeLog @@ -0,0 +1,5 @@ +*pycryptodomex-3.10.4 (27 Sep 2021) + + 27 Sep 2021; +metadata.xml, + +pycryptodomex-3.10.4.ebuild: + dev-python/pycryptodomex: new package (DANDI stack) diff --git a/dev-python/pycryptodomex/Manifest b/dev-python/pycryptodomex/Manifest new file mode 100644 index 0000000..e70c276 --- /dev/null +++ b/dev-python/pycryptodomex/Manifest @@ -0,0 +1 @@ +DIST pycryptodomex-3.10.4.tar.gz 3797210 SHA256 acd3498a8ccf8ad20ce7daa5f7f5e6521465eeceb026f28a6adb0228dd9fcc6e SHA512 38a24f8a51c6b3d03e6fc7226921956bfaea4d8839a1e308de417d76931eedc969d913b62d7001bf2116ab613c31e6802194127af25cee2ff83971f871a62111 WHIRLPOOL 60786c71df0a9ca92ebb7a7633676bc6aaf19ebdb69f68a99058252e715462067f53b12cb83277d82d16e3ab4b49c594061e2e0c73a1bddd976b1f51877b626a diff --git a/dev-python/pycryptodomex/metadata.xml b/dev-python/pycryptodomex/metadata.xml new file mode 100644 index 0000000..cfee3ba --- /dev/null +++ b/dev-python/pycryptodomex/metadata.xml @@ -0,0 +1,26 @@ + + + + + gentoo@chymera.eu + Horea Christian + + + sci@gentoo.org + Gentoo Science Project + + + PyCryptodome is a self-contained Python package of low-level + cryptographic primitives. It is a fork of PyCrypto, and brings + numerous enhancements with respect to the official versions of + PyCrypto, such as Authenticated encryption modes (GCM, CCM, EAX, + SIV, OCB), Accelerated AES on Intel platforms via AES-NI, Elliptic + curves cryptography (NIST P-256, P-384 and P-521 curves only), + SHA-3 (including SHAKE XOFs), truncated SHA-512 and BLAKE2 hash + algorithms, and many more. PyCryptodome is not a wrapper to a + separate C library like OpenSSL. To the largest possible extent, + algorithms are implemented in pure Python. Only the pieces that + are extremely critical to performance (e.g. block ciphers) are + implemented as C extensions. + + diff --git a/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild b/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild new file mode 100644 index 0000000..91fda6d --- /dev/null +++ b/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Cryptographic library for Python" +HOMEPAGE="https://www.pycryptodome.org https://pypi.org/project/pycryptodomex/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="test" +# Numerous tests fail, reported upstream https://github.com/Legrandin/pycryptodome/issues/549 + +DOCS="README.rst" + +RDEPEND="" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + nosetests --verbose || die + py.test -v -v || die +}