summaryrefslogtreecommitdiff
path: root/dev-python/cryptography
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-10 04:26:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-10 04:26:23 +0100
commit9e8f96c1b33dc01bc5dfbed0cfb2702bb299f1e0 (patch)
tree935774930075230b45a40e5c8da1e0199bf277a5 /dev-python/cryptography
parent796e724b5ace96ff70d918765662edf62f1d8c85 (diff)
gentoo auto-resync : 10:07:2023 - 04:26:23
Diffstat (limited to 'dev-python/cryptography')
-rw-r--r--dev-python/cryptography/Manifest5
-rw-r--r--dev-python/cryptography/cryptography-40.0.2-r1.ebuild6
-rw-r--r--dev-python/cryptography/cryptography-41.0.1-r1.ebuild149
-rw-r--r--dev-python/cryptography/cryptography-41.0.1.ebuild6
4 files changed, 162 insertions, 4 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index 516a9c6333ea..add296480dcc 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -101,6 +101,7 @@ DIST windows_i686_msvc-0.42.2.crate 724951 BLAKE2B b084286cd4927efd2889b149abf8a
DIST windows_x86_64_gnu-0.42.2.crate 699373 BLAKE2B 01c70809d564b16b268656e47295e99c992d8f9839fac8a51338a0e7c3b9cdcd0429c456ca8c1c139a8c687ed7ed6c43a82250889d881aadaa65bd037223e0a6 SHA512 5767af3c86e717f93137a89d442230e6b60a649057edb3ab104b1f82c0bcd64fe089dcdf2f4fd486a799bece1ddb5f0449641536b678211945e749ae24f35c1f
DIST windows_x86_64_gnullvm-0.42.2.crate 364068 BLAKE2B 64bc53e98eb3fc649c9b43a6e734de4e65088e41edacabd49f7afcc5dc6e1065c563ecfc682747dda05978dea2dba4f45c16fcc18c3b00684c3d93681e5a7deb SHA512 d39a8bc948110fe612d3f8d6628b3f0d56620df11d8a49e0fabb6c90389ad407582b3af10e4eab46c79b3d11d2e10753d73d9e55963fbeac085f41e9749bdba3
DIST windows_x86_64_msvc-0.42.2.crate 666936 BLAKE2B bc3a456e7f8bc272f8978ec69506ec9d89f97b7582ebbe05d8bd57bdf8156ef62d0d2dc6137a97e81d54059d70db97a24af9a038adff357f5dfd28805d6193b5 SHA512 53a35f438903fceb59e36bd2ac331773fb8e6c8c5a6d984e79021761f91b3b4a23efe49d219667a4d0d23dcdbf906da9c24e74fb1cff93395b5c55ff524e3788
-EBUILD cryptography-40.0.2-r1.ebuild 3962 BLAKE2B 134a9626216560b7ec1084025ed92aae23eebd9ea4f258a7519f09612fa2cb56ae4918e700867f5fe7e19f566482fde60617d523c3609e819e3088ee3aba70db SHA512 0753f95df3832fb2d4ec3ce87dff313347cd5c643c346d3e6e750f42715d88b1b2111fac840c0ba1a4b53f472347a492d3a7047ca5688b318a29709394140cb7
-EBUILD cryptography-41.0.1.ebuild 3205 BLAKE2B f0441dd27f97f20bb12f9d20705962b7564a06f5ce9aae7156415d44b984f4d9b4fb66879f1f3abbb032aaa01f3406d63af722fd9c8b0540b03ab54928b4ece6 SHA512 5b3dfe884a7710ac7717cb49e2969b79b87067679e5b199ab947079e58a1732e5ddeb3de7f5a92b6de7be87aea745ff3d8b6442e66a3bcd5b650de453ae7effe
+EBUILD cryptography-40.0.2-r1.ebuild 4029 BLAKE2B ef9cd2e0418b5ad57aa6d7768b60730c16d4e5bf6a4bc750f144cf049f2ec02d7a7ea38de27151972cb53710212f20f4b86a8b941332ba430e28f7a15eb75a22 SHA512 47c8dd2995f4689a19914810b0622295627000ad16829831acdcc91e0b7bfe3f55ac9171adf52bc3fe9138600e2b590ea9fa5b9b204ef0bf7e34adb34a7d2140
+EBUILD cryptography-41.0.1-r1.ebuild 3275 BLAKE2B 86f8d70ede9ec8cd1abc6dfd4bb1e583edf1f260121f9a14b748c9ace4e1fd5d1c3071c73cd765622a9275e7b2ca8f4d55d05c721f248e11b98d65c4d7a72bac SHA512 a303ffc950da0b9b641ff4e7da2d8bd937b303aeb4aacf527c4d4e4afc0d71d7b01c4cc8b4e8289b1cc1425ad2ca164757a6598428338171258ceb96ce82afad
+EBUILD cryptography-41.0.1.ebuild 3272 BLAKE2B acba116b0bb1e45de2ac5eba703999f04913bfc82e4c241726ac5aa2df266116b8c1e1914b4f777df315e2793620178b0a0fbcd31ccbe597e438b872c86bb7fe SHA512 45c77af2164a0f2866442a1d31f9b8d4ac931ec9bd78fe0c1fc85adbd6449496143e3e7df7863339b6c4f8554cfda08311f98a8e41db010f9ad10c10578baf13
MISC metadata.xml 464 BLAKE2B 96c0bd97b83c9718910d129260402fdc37e88a96ac6002c8f6dd19fb21d6daf31211b83ff7423036811e27954811ebdc810c8328f18c620682bd9428f42ba1f9 SHA512 2f36a186bb195a8cbafe1d8dd6630fadf0ea56b22906ebaf3c90954adb8b66e1017f599169e2b1ca386e1113c1a6b834fff90f2bec527bed53f62985120732d6
diff --git a/dev-python/cryptography/cryptography-40.0.2-r1.ebuild b/dev-python/cryptography/cryptography-40.0.2-r1.ebuild
index 1547392d4b67..21b0958aabd1 100644
--- a/dev-python/cryptography/cryptography-40.0.2-r1.ebuild
+++ b/dev-python/cryptography/cryptography-40.0.2-r1.ebuild
@@ -93,7 +93,7 @@ CRATES="
windows_x86_64_msvc-0.42.2
"
-inherit cargo distutils-r1 multiprocessing pypi
+inherit cargo distutils-r1 flag-o-matic multiprocessing pypi
VEC_P=cryptography_vectors-$(ver_cut 1-3)
DESCRIPTION="Library providing cryptographic recipes and primitives"
@@ -169,6 +169,10 @@ src_prepare() {
fi
}
+python_configure_all() {
+ filter-lto # bug #903908
+}
+
python_test() {
local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}"
local EPYTEST_IGNORE=(
diff --git a/dev-python/cryptography/cryptography-41.0.1-r1.ebuild b/dev-python/cryptography/cryptography-41.0.1-r1.ebuild
new file mode 100644
index 000000000000..34c91a3b4753
--- /dev/null
+++ b/dev-python/cryptography/cryptography-41.0.1-r1.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CARGO_OPTIONAL=yes
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+CRATES="
+ Inflector@0.11.4
+ aliasable@0.1.3
+ asn1@0.15.2
+ asn1_derive@0.15.2
+ autocfg@1.1.0
+ base64@0.13.1
+ bitflags@1.3.2
+ cc@1.0.79
+ cfg-if@1.0.0
+ foreign-types-shared@0.1.1
+ foreign-types@0.3.2
+ indoc@1.0.9
+ libc@0.2.144
+ lock_api@0.4.9
+ memoffset@0.8.0
+ once_cell@1.17.2
+ openssl-macros@0.1.1
+ openssl-sys@0.9.88
+ openssl@0.10.54
+ ouroboros@0.15.6
+ ouroboros_macro@0.15.6
+ parking_lot@0.12.1
+ parking_lot_core@0.9.7
+ pem@1.1.1
+ pkg-config@0.3.27
+ proc-macro-error-attr@1.0.4
+ proc-macro-error@1.0.4
+ proc-macro2@1.0.59
+ pyo3-build-config@0.18.3
+ pyo3-ffi@0.18.3
+ pyo3-macros-backend@0.18.3
+ pyo3-macros@0.18.3
+ pyo3@0.18.3
+ quote@1.0.28
+ redox_syscall@0.2.16
+ scopeguard@1.1.0
+ smallvec@1.10.0
+ syn@1.0.109
+ syn@2.0.18
+ target-lexicon@0.12.7
+ unicode-ident@1.0.9
+ unindent@0.1.11
+ vcpkg@0.2.15
+ version_check@0.9.4
+ windows-sys@0.45.0
+ windows-targets@0.42.2
+ windows_aarch64_gnullvm@0.42.2
+ windows_aarch64_msvc@0.42.2
+ windows_i686_gnu@0.42.2
+ windows_i686_msvc@0.42.2
+ windows_x86_64_gnu@0.42.2
+ windows_x86_64_gnullvm@0.42.2
+ windows_x86_64_msvc@0.42.2
+"
+
+inherit cargo distutils-r1 flag-o-matic multiprocessing pypi
+
+VEC_P=cryptography_vectors-$(ver_cut 1-3)
+DESCRIPTION="Library providing cryptographic recipes and primitives"
+HOMEPAGE="
+ https://github.com/pyca/cryptography/
+ https://pypi.org/project/cryptography/
+"
+SRC_URI+="
+ ${CARGO_CRATE_URIS}
+ test? (
+ $(pypi_sdist_url cryptography_vectors "$(ver_cut 1-3)")
+ )
+"
+
+LICENSE="|| ( Apache-2.0 BSD ) PSF-2"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD MIT
+ Unicode-DFS-2016
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ >=dev-libs/openssl-1.0.2o-r6:0=
+ $(python_gen_cond_dep '
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
+ ' 'python*')
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-python/setuptools-rust[${PYTHON_USEDEP}]
+ 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/pytest-subtests[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ dev-python/pytz[${PYTHON_USEDEP}]
+ )
+"
+
+# Files built without CFLAGS/LDFLAGS, acceptable for rust
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/cryptography/hazmat/bindings/_rust.*.so"
+
+distutils_enable_tests pytest
+
+src_unpack() {
+ cargo_src_unpack
+}
+
+src_prepare() {
+ default
+
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die
+
+ # 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_configure_all() {
+ filter-lto # bug #903908
+}
+
+python_test() {
+ local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}"
+ local EPYTEST_IGNORE=(
+ tests/bench
+ )
+ epytest -n "$(makeopts_jobs)"
+}
diff --git a/dev-python/cryptography/cryptography-41.0.1.ebuild b/dev-python/cryptography/cryptography-41.0.1.ebuild
index b302e47e0cfb..ab9db0bad0a0 100644
--- a/dev-python/cryptography/cryptography-41.0.1.ebuild
+++ b/dev-python/cryptography/cryptography-41.0.1.ebuild
@@ -65,7 +65,7 @@ CRATES="
windows_x86_64_msvc@0.42.2
"
-inherit cargo distutils-r1 multiprocessing pypi
+inherit cargo distutils-r1 flag-o-matic multiprocessing pypi
VEC_P=cryptography_vectors-$(ver_cut 1-3)
DESCRIPTION="Library providing cryptographic recipes and primitives"
@@ -136,6 +136,10 @@ src_prepare() {
fi
}
+python_configure_all() {
+ filter-lto # bug #903908
+}
+
python_test() {
local -x PYTHONPATH="${PYTHONPATH}:${WORKDIR}/cryptography_vectors-${PV}"
local EPYTEST_IGNORE=(