diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-10 06:44:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-10 06:44:55 +0000 |
commit | f617f04203a0968020e5a7252e865803636af918 (patch) | |
tree | d05c93d914912359b74f6f31b27bd1cd719f8bda /dev-python/pyopenssl | |
parent | 013635213f8032704e1ec9ae01e9303e63a2efbb (diff) |
gentoo auto-resync : 10:03:2024 - 06:44:55
Diffstat (limited to 'dev-python/pyopenssl')
-rw-r--r-- | dev-python/pyopenssl/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyopenssl/pyopenssl-24.1.0.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/pyopenssl/Manifest b/dev-python/pyopenssl/Manifest index e0c9fa939e6a..3d1ee4519b81 100644 --- a/dev-python/pyopenssl/Manifest +++ b/dev-python/pyopenssl/Manifest @@ -1,3 +1,5 @@ DIST pyOpenSSL-24.0.0.tar.gz 183238 BLAKE2B 93c75bd323ceb65945fa57a586403c2166b949ce0d4d158b94dc6c40b49373f63e38b0a2cdf2478ab8f6d5d12feeb261324fa13f06040f91b92fffce408d1071 SHA512 32503eeb8b03d9f7dc580c9a2fbbc009a1498b444d17751253bccf8344897408e6d99043dae01385d00bd56fa5aa7d486a43fdc81b1d14cc59fa372c9e58c4e8 +DIST pyOpenSSL-24.1.0.tar.gz 179671 BLAKE2B d49139e9604e854427005adb17cbc8926fa4e10390b36446f9c95dbe81802bb8b97c2e6f1ea8f91dfd74733631292c88536c4f9772647e6d4b449b4d01ed6355 SHA512 acb07025f085d2fe9338e5ce5f65937001b1a8376c41ac532e9b0548668ce05c844e3e28c58efad812a034becf8e24aa9504165ff6af4c3b085cf463fa4d2fb6 EBUILD pyopenssl-24.0.0.ebuild 1516 BLAKE2B 2d6900ddd13cb6d1cb1014f993afe0b22189141f7fa30bb438683d0637438cba03c6605f9b724cb5a397920ddde10383d96a1c7351458887b59a79bdd4544b7f SHA512 377f52c56c25e786172bce0539661d947fbb7210130166b3f18f3a6df30f2fabadadcb90e0f299182a7d7f7c4b24fd0f3ccf677ec175681375a967ca1988e4f8 +EBUILD pyopenssl-24.1.0.ebuild 1538 BLAKE2B 1c9d1d75e101ea2ef7a85e4455a920a213fc4b3807542eb1db00e1be3f447704ebb0d7ad45b9d4f3a694f07fe0892a8403c4cb3cd54e35f0b93ef6325515d644 SHA512 ba77b780131150bd2d06ffcaa4f8fbb429eed85253986c253491f6a9a207dcf0f666dee464915da703ba576fb0b4e9c02eb27a59a6b2278ef3dafed0801ff3cf MISC metadata.xml 536 BLAKE2B 86db822042b6fb3e965ece87b6b15dcabf76cdfbfa76ba285a491208ad5c6a2a196ca7144a1a73b152decc4df1641ad4c57a1cbde9f90d09d25eef1f6f4da39a SHA512 996d0e20291e744c6c20b38fd750d242920541aca7d92de63ca5b1dcc2f1c10308545797ccf499f38e50dfd04db2bb031e93b02c7c1705908f2363c813294ff1 diff --git a/dev-python/pyopenssl/pyopenssl-24.1.0.ebuild b/dev-python/pyopenssl/pyopenssl-24.1.0.ebuild new file mode 100644 index 000000000000..939441d62a86 --- /dev/null +++ b/dev-python/pyopenssl/pyopenssl-24.1.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +PYPI_NO_NORMALIZE=1 +PYPI_PN=pyOpenSSL + +inherit distutils-r1 toolchain-funcs pypi + +DESCRIPTION="Python interface to the OpenSSL library" +HOMEPAGE=" + https://www.pyopenssl.org/ + https://github.com/pyca/pyopenssl/ + https://pypi.org/project/pyOpenSSL/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + <dev-python/cryptography-43[${PYTHON_USEDEP}] + >=dev-python/cryptography-41.0.5[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*') + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx doc \ + dev-python/sphinx-rtd-theme +distutils_enable_tests pytest + +src_test() { + local -x TZ=UTC + local EPYTEST_DESELECT=( + tests/test_ssl.py::TestContext::test_set_default_verify_paths + ) + + # test for 32-bit time_t + "$(tc-getCC)" ${CFLAGS} ${CPPFLAGS} -c -x c - -o /dev/null <<-EOF &>/dev/null + #include <sys/types.h> + int test[sizeof(time_t) >= 8 ? 1 : -1]; + EOF + + if [[ ${?} -eq 0 ]]; then + einfo "time_t is at least 64-bit long" + else + einfo "time_t is smaller than 64 bits, will skip broken tests" + EPYTEST_DESELECT+=( + tests/test_crypto.py::TestX509StoreContext::test_verify_with_time + ) + fi + + distutils-r1_src_test +} |