forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/cryptography: Bump to 3.3.2 (secfix)
Signed-off-by: Michał Górny <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
DIST cryptography-3.2.1.tar.gz 540994 BLAKE2B 667f09ac81423ecdc84c8646f0d02ee3a2955f55d35623e59c07696810a93c47332f7f8d877918eeeb6581d8e02bde3b70aae8e9d32be7ffbc8011e5e7e382a9 SHA512 e3f1806693c24aadc3ef0df374ce1845760e87ad7c243226b75e80820b50bdc0760e4bb5f6ce26d62a6d23736b3109f72cd30b52ae2a36b26ec5656ec96c6175 | ||
DIST cryptography-3.3.1.tar.gz 539756 BLAKE2B a3eb52d756565ae83d9f2e06045be1d3439a2464b633a9a168101796a448d7c7531e8247862f7996d04500347d32dcebf6b1352e9c9f2e4f0d8008d4bbd000dc SHA512 62192fe0fd3bb8844ccc0056ab72a42b038db2a4ecb0928543c520b85e1de93066dab0d604acf23d37395d68172b9618f81c6022a59ec49725bc1862096d15d1 | ||
DIST cryptography-3.3.2.tar.gz 539883 BLAKE2B e35de90362b24170c4025f67914e60c16fbf37fce6bcd5d6f3fe32e5a9bb60de8edbebcb1ff0450fabc9c244d4b1a4618c720b630f28c747fea17e9bf008f01f SHA512 55f6ee13342b3209b1fcb310f4c4d33d22856ee785cb2347e6ad36c34e9b42f6e0d5bece8e458b09663a5b78e34c4567fe7a211b51ca71f55ccc93e3f62dc5e4 | ||
DIST cryptography_vectors-3.2.1.tar.gz 35168164 BLAKE2B 77af3be0dbd7393da7cd59600086041b78fe20339018a637fc1cf3600c7cd08cf2e565c79ccb47f4719a4b0f01cf2ab2db00c025805443b333dd7fdf3aa835a7 SHA512 44ff756a6ece9700f7657f8ba92417e95bf273cf500f1dab2141de5b2af6e61840d65c37b766abd752c76025ead1550bfc7b7340ce5774c75fd0bb8ac768cdd8 | ||
DIST cryptography_vectors-3.3.1.tar.gz 35168171 BLAKE2B 72cf5d79773a728c16847e3e62f8ce444526c051d7562467446d3e59c66064568fdfcbfb1fd35419fd79079ff9a02a2f3a97f870f7adef6cc9a0fd23b4edf514 SHA512 a102535bd3cf72118106ca7268d5a9921738d41f81247940c550961d61cb0d1869095b7891c39e8dc15816f7d38230622846747b4b7a3f226f09306cf86220bd | ||
DIST cryptography_vectors-3.3.2.tar.gz 35168168 BLAKE2B 3991a16556ae5be0d153cfe302dd9a860918a80bd0bdef7104f3c170ba63941c4b1ff74750bc12329422a6061161cb6452bea60e191d85c0d79e0852566c6c0b SHA512 18590adb96a6f04b8a41d4346b126b8adfc854cbcec85f8c1c0a23b1b363f215b37da60ea94a481b8fd7752f07fba515b08fc18faf2e29fb858e133129971f7c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{7..9} pypy3 ) | ||
PYTHON_REQ_USE="threads(+)" | ||
|
||
inherit distutils-r1 multiprocessing | ||
|
||
VEC_P=cryptography_vectors-${PV} | ||
DESCRIPTION="Library providing cryptographic recipes and primitives" | ||
HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.org/project/cryptography/" | ||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz | ||
test? ( mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz )" | ||
|
||
LICENSE="|| ( Apache-2.0 BSD )" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" | ||
IUSE="libressl idna" | ||
|
||
RDEPEND=" | ||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}] | ||
idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] ) | ||
$(python_gen_cond_dep ' | ||
>=dev-python/cffi-1.8:=[${PYTHON_USEDEP}] | ||
' 'python*') | ||
" | ||
BDEPEND=" | ||
test? ( | ||
>=dev-python/hypothesis-1.11.4[${PYTHON_USEDEP}] | ||
dev-python/iso8601[${PYTHON_USEDEP}] | ||
dev-python/pretend[${PYTHON_USEDEP}] | ||
dev-python/pyasn1-modules[${PYTHON_USEDEP}] | ||
dev-python/pytz[${PYTHON_USEDEP}] | ||
dev-python/pytest-xdist[${PYTHON_USEDEP}] | ||
)" | ||
|
||
distutils_enable_tests pytest | ||
|
||
DEPEND=" | ||
!libressl? ( >=dev-libs/openssl-1.0.2o-r6:0= ) | ||
libressl? ( >=dev-libs/libressl-2.9.1:0= ) | ||
" | ||
RDEPEND+=${DEPEND} | ||
|
||
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst ) | ||
|
||
src_prepare() { | ||
default | ||
|
||
# work around availability macros not supported in GCC (yet) | ||
if [[ ${CHOST} == *-darwin* ]] ; then | ||
local darwinok=0 | ||
if [[ ${CHOST##*-darwin} -ge 16 ]] ; then | ||
darwinok=1 | ||
fi | ||
sed -i -e 's/__builtin_available(macOS 10\.12, \*)/'"${darwinok}"'/' \ | ||
src/_cffi_src/openssl/src/osrandom_engine.c || die | ||
fi | ||
} | ||
|
||
python_test() { | ||
local -x PYTHONPATH=${PYTHONPATH}:${WORKDIR}/${VEC_P} | ||
pytest -vv -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" || | ||
die "Tests fail with ${EPYTHON}" | ||
} |