diff options
author | Aaron Bauman <bman@gentoo.org> | 2020-06-17 23:24:15 -0400 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2020-06-17 23:24:15 -0400 |
commit | 443b221bc2827fdb36a001669870a8d093460c55 (patch) | |
tree | e9fd76b85eb5f2f24dbdf4448daffac16bed3f96 /dev-python/rsa | |
parent | app-emulation/xen: drop vulnerable (diff) | |
download | gentoo-443b221bc2827fdb36a001669870a8d093460c55.tar.gz gentoo-443b221bc2827fdb36a001669870a8d093460c55.tar.bz2 gentoo-443b221bc2827fdb36a001669870a8d093460c55.zip |
Revert "dev-python/rsa: drop vulnerable"
This reverts commit 7beacde9746149b88470517083dbc917524fdd75.
* Missed the depends on the bug. Muh bad.
Signed-off-by: Aaron Bauman <bman@gentoo.org>
Diffstat (limited to 'dev-python/rsa')
-rw-r--r-- | dev-python/rsa/Manifest | 3 | ||||
-rw-r--r-- | dev-python/rsa/rsa-3.4.2-r1.ebuild | 34 | ||||
-rw-r--r-- | dev-python/rsa/rsa-4.0.ebuild | 25 | ||||
-rw-r--r-- | dev-python/rsa/rsa-4.1.ebuild | 36 |
4 files changed, 98 insertions, 0 deletions
diff --git a/dev-python/rsa/Manifest b/dev-python/rsa/Manifest index acb17cff5e28..d4bc5173cd4b 100644 --- a/dev-python/rsa/Manifest +++ b/dev-python/rsa/Manifest @@ -1 +1,4 @@ +DIST python-rsa-version-4.1.gh.tar.gz 68748 BLAKE2B f7f80fab701e52db0949dae709a8ac01db773ecf721427536a4cc5a7dedae6285eab12b3377daa15e0ecf23682ba800fc8601149a98277331b1cc19573a94596 SHA512 93d80050d7c249285e8e05e2d9d84940b15f08380c3108da3463c1625fde18884189757e480ff62cc2b65d1521c57f8aee15aec501f3f1b9961ce053b304c25c DIST python-rsa-version-4.2.gh.tar.gz 63280 BLAKE2B 1260fe2a0f34c16b3cd2e18bc642da2e9c6caad851920a4c010aaad31959d0baab397356cd2437eb4a9091b3f524760f45b8d46ff9a207be009b2613615681c1 SHA512 a4df2de41d252a42627e96298b044a50953c429b5062f02cc7b64a7e17f75b09bb8b0f9b371353e639d1daec7775c20f20348f45baf00f591514c54e1315f044 +DIST rsa-3.4.2.tar.gz 40956 BLAKE2B 9a6353c84329303c655e7a25fcfa2ca42ea846c913fac0c26fee4a27bb85f9380de876b2ec07ae2212eb37efe5d2e401b2672f187f74bbeee1e9ef1099629e36 SHA512 62b0ff31fb3b9c18ae65bd102329e69726b853560576b1b66b9b89b26d3ff79154239af7e7a581b6a27c7017cc013f738762cd9662777ef594cc11c5b1f8e267 +DIST rsa-4.0.tar.gz 37385 BLAKE2B 2621ee732f15ea12283b723efb5e88847d3e030e8115bb4a3e986099fc94adc3409202d54b4350b0888deefd8dc801d8d3e57fef9e85f386ead53e4412da6d05 SHA512 e11106741cc4275246c986d39b3f028b5a4df6fbffdd08a78072ac3d3a9a7ade7a39789c504a2705f54d858a9bdbf03981251f32f9c45baba71e4a986e14b24e diff --git a/dev-python/rsa/rsa-3.4.2-r1.ebuild b/dev-python/rsa/rsa-3.4.2-r1.ebuild new file mode 100644 index 000000000000..bc2b7755ef5e --- /dev/null +++ b/dev-python/rsa/rsa-3.4.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Pure-Python RSA implementation" +HOMEPAGE="https://stuvel.eu/rsa https://pypi.org/project/rsa/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pyasn1-0.1.3[${PYTHON_USEDEP}] + dev-python/traceback2[${PYTHON_USEDEP}] + " +DEPEND="${RDEPEND} + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/unittest2[${PYTHON_USEDEP}] + ) + " + +python_test() { + nosetests --verbose || die +} diff --git a/dev-python/rsa/rsa-4.0.ebuild b/dev-python/rsa/rsa-4.0.ebuild new file mode 100644 index 000000000000..10c836a9a58d --- /dev/null +++ b/dev-python/rsa/rsa-4.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Pure-Python RSA implementation" +HOMEPAGE="https://stuvel.eu/rsa https://pypi.org/project/rsa/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 x86" + +RDEPEND=" + >=dev-python/pyasn1-0.1.3[${PYTHON_USEDEP}] + " +BDEPEND=" + test? ( dev-python/mock[${PYTHON_USEDEP}] )" + +distutils_enable_tests unittest diff --git a/dev-python/rsa/rsa-4.1.ebuild b/dev-python/rsa/rsa-4.1.ebuild new file mode 100644 index 000000000000..0008a7fe97f4 --- /dev/null +++ b/dev-python/rsa/rsa-4.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) +# TODO: +rdepend, when supported +DISTUTILS_USE_SETUPTOOLS=pyproject.toml + +inherit distutils-r1 + +MY_P=python-rsa-version-${PV} +DESCRIPTION="Pure-Python RSA implementation" +HOMEPAGE="https://stuvel.eu/rsa https://pypi.org/project/rsa/" +SRC_URI=" + https://github.com/sybrenstuvel/python-rsa/archive/version-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm arm64 ~x86" + +RDEPEND=" + >=dev-python/pyasn1-0.1.3[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( dev-python/mock[${PYTHON_USEDEP}] ) +" + +distutils_enable_tests unittest + +src_prepare() { + rm tests/test_mypy.py || die + distutils-r1_src_prepare +} |