mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-python/cryptography: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -5,12 +5,8 @@ DIST base64-0.22.1.crate 81597 BLAKE2B 6f216a560bd36e6e6b74e908344b457594cc768d9
|
||||
DIST bitflags-2.9.4.crate 47950 BLAKE2B b880246b54377ef161c54a811f09ced975d1f2049400c1bbba944712b8ef8b9ea79599d2354cc2a9ccd4c1b1329faad78738ed4e051735b14b642a9451ce68ae SHA512 a832e01985551db9d700ba177bb2ffe436e78e3bdcf7b2d8e86fc7cb885674d5656fce05bffb5a4cbe0df7b015dcfa6df8dbc1351c097d2c3a3dac199d3f37b1
|
||||
DIST cc-1.2.37.crate 90111 BLAKE2B c97656ab4642b180af1adf16736de03b5117774a2fd85d3cbbeb06744ab14a1f20accf8eb59c43dfc7fd803c59f92f30ccd7b2a6e3b53d8ecf45c8a2adb71483 SHA512 062bf65f73e5ae092391efaad510af39c96913d5647073eaa32e9475b34b6d87d2e4448f0dd54ecdf9b979a84819f861d05daf7fdbc06885f6b41162d55bb81f
|
||||
DIST cfg-if-1.0.3.crate 8719 BLAKE2B 5cd0ac122110740895b45cdf8e0f738f2de1882d5a06c696d08e906765e4ddcd72a866dcc115da52d9fece205c9ad15dc25ad98dff36b32517012a7586e986ee SHA512 afe424a191c2aaaffec3d114e0116d0324d12117aeb22df78e47ad6752444bc5acb074ab0a174476b71e584a37743f9dcc2b0e8036d590fcc5afc7c55f86122b
|
||||
DIST cryptography-46.0.5.tar.gz 750064 BLAKE2B 7ae24a245583daf64a01cfbb9269e9d5aca82929543957572bea56f9e295593e81f836c87bd32bcb7aaa58253b7a156401a1d29992b60e73fd5926016fbbb4cd SHA512 5bc5ea5b85c600504c46e2376a45cee749f41e2b4a6eb639b05d289370dcdc82b2ace423532f5591da16ca56ea32919e47ec154cb72bf7e1f5f3f923c744a185
|
||||
DIST cryptography-46.0.5.tar.gz.provenance 9455 BLAKE2B 43796d3302d572eed76aadcab803b95217172945d77838f6fb1171fdd6f61bc811690aa73434479ac228fa98ad39cb513e781a6bc9c11311447350a6b7e1036f SHA512 317dcd14b36f056c1e5486c65cb5f8d82cfc0c2e3324279093e9d3533553bf2b120f3b0ecc99033c8d915fa712825eed2070b9b61fd8e98ceb6c21cf7bdd755d
|
||||
DIST cryptography-46.0.6.tar.gz 750542 BLAKE2B 9aec3ac9d938741f074d2d0ede964ac0c26018acd057d4b82b37c5d1b00797b8d967df400c0363aeafb0c3792c5a4c1db7352428143c720f0ed255e491f07be9 SHA512 c8207d0d3a687570bd0b1b371a30f76a9ba2b4494495cfdc0734c4839e477e64568695e5d37895acc13ee5477368904906013b48099cf39bde8d1973e2a4ebcf
|
||||
DIST cryptography-46.0.6.tar.gz.provenance 9659 BLAKE2B 2067ff900bcd91f39f8d4e7acc01ae712b6bbd2473726fb0126b4da7b6528324c74ed4c48978a013333f5ab08870e16676cc1c55e70b866f93554afdb08ec502 SHA512 e726e1cc3cd42eaca01fd3dc1730c82515f91ae89c42e310661397e1b54f4ebdc9c9933cb0242b69a87fcfcbc4f77b1a14e047bd606d4e3da789df433c1e8acd
|
||||
DIST cryptography_vectors-46.0.5.tar.gz 33809256 BLAKE2B 26d428128708491bff05eb09939b22cec0f1b2248379ed063c078504663775b3e0a5a2223355674a4fc0c7bf563a73724098032f8f1a5c963fc21f5616afd653 SHA512 44197977e2c46680d9c78061bb04e8ba9e5118666a90c76e560d2f5b2ca1488615b380dd23429ab2bec75bc73c8c9b87bb51a7d6220067a8eb548fbfb5b23c8e
|
||||
DIST cryptography_vectors-46.0.5.tar.gz.provenance 9561 BLAKE2B e8da4de62146333dbe154e913b8f6ac6b6e7fe7b334ba89ad09a446a85b0ebba65d4bae63d805becca692c2ad22e46d39efd54cf2db3b1505c017dbde377522c SHA512 199ea26934c99fc5097cc3c56f2991e34a9c9a2dae4881ba27fcefb0dcf2cb17b19568388d52fdadbb80c1cff6bb6bcd6d61afc0ef1d93b0fe28995984957457
|
||||
DIST cryptography_vectors-46.0.6.tar.gz 33809309 BLAKE2B 82cafe92b5a345b43baf35b8846af5dfb30d20be060a2c5af193e7eaea082ed435f946cac17db511d99bfb4650b8ce8c38051d80f95d2ffe6208054d89b19d0b SHA512 e2af1a43895d6a99ae6f2534affb9d9fe9c78b5800fe6026031a93812a5fd91a88cc1a3b332e4b3c5b421b53baaece644bd93c2b1584d4195ee6bf4fde4fd369
|
||||
DIST cryptography_vectors-46.0.6.tar.gz.provenance 9577 BLAKE2B 1df1125f8f10fe5aca894b0f07fc5729eed79ee2fa72823b30531c36f1fc9e959fdcc51c300e0d582aa5e51fdf0ca8364fa39e87b18f2aaf225b4037b949a985 SHA512 f588070636689fb3a31c46167455f12210e3f52f7d61678ee061b6b78f80261db83253cf5cc866c5bd65e665839bc92e9ee09598f401a9210a5d0a0a726a2cb5
|
||||
DIST find-msvc-tools-0.1.1.crate 30228 BLAKE2B 9f6d84697a0310021a59789a0aebcf5895490e4dd719a2ef820ddf2f225ecd13c814e2c03e8d4de4089a2d1599b469a900c0c1072f9b57dcce9fb8634dcea6b2 SHA512 cc91ce79858db4a6feb3ff0fe24d7b29a523285247116a42b27affacc3f034afc0d458ac8716922f5fec5f23deafd62e875ec899d4ea58531d028535c22e137e
|
||||
|
||||
@@ -1,147 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CARGO_OPTIONAL=yes
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=maturin
|
||||
PYPI_VERIFY_REPO=https://github.com/pyca/cryptography
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
CRATES="
|
||||
asn1@0.22.0
|
||||
asn1_derive@0.22.0
|
||||
autocfg@1.5.0
|
||||
base64@0.22.1
|
||||
bitflags@2.9.4
|
||||
cc@1.2.37
|
||||
cfg-if@1.0.3
|
||||
find-msvc-tools@0.1.1
|
||||
foreign-types-shared@0.1.1
|
||||
foreign-types@0.3.2
|
||||
heck@0.5.0
|
||||
indoc@2.0.6
|
||||
itoa@1.0.15
|
||||
libc@0.2.175
|
||||
memoffset@0.9.1
|
||||
once_cell@1.21.3
|
||||
openssl-macros@0.1.1
|
||||
openssl-sys@0.9.110
|
||||
openssl@0.10.74
|
||||
pem@3.0.5
|
||||
pkg-config@0.3.32
|
||||
portable-atomic@1.11.1
|
||||
proc-macro2@1.0.101
|
||||
pyo3-build-config@0.26.0
|
||||
pyo3-ffi@0.26.0
|
||||
pyo3-macros-backend@0.26.0
|
||||
pyo3-macros@0.26.0
|
||||
pyo3@0.26.0
|
||||
quote@1.0.40
|
||||
self_cell@1.2.0
|
||||
shlex@1.3.0
|
||||
syn@2.0.106
|
||||
target-lexicon@0.13.3
|
||||
unicode-ident@1.0.19
|
||||
unindent@0.2.4
|
||||
vcpkg@0.2.15
|
||||
"
|
||||
|
||||
inherit cargo distutils-r1 flag-o-matic 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)")
|
||||
$(pypi_provenance_url "${VEC_P}.tar.gz" cryptography_vectors "$(ver_cut 1-3)")
|
||||
-> ${VEC_P}.tar.gz.provenance
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="|| ( Apache-2.0 BSD ) PSF-2"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-3.0
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/openssl-1.0.2o-r6:0=
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/cffi-2.0.0:=[${PYTHON_USEDEP}]
|
||||
' 'python*')
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
${RUST_DEPEND}
|
||||
>=dev-util/maturin-1.9.4[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/iso8601[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
dev-python/pyasn1-modules[${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"
|
||||
|
||||
EPYTEST_PLUGINS=( hypothesis pytest-subtests )
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/pyca/cryptography/pull/14319
|
||||
"${FILESDIR}/${PN}-46.0.5-stray-files.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
if use verify-provenance; then
|
||||
pypi_verify_provenance "${DISTDIR}/${P}.tar.gz"{,.provenance}
|
||||
use test && pypi_verify_provenance "${DISTDIR}/${VEC_P}.tar.gz"{,.provenance}
|
||||
fi
|
||||
|
||||
cargo_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
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}/${VEC_P}"
|
||||
local EPYTEST_IGNORE=(
|
||||
tests/bench
|
||||
)
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user