summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-28 02:52:50 +0100
committerSam James <sam@gentoo.org>2022-04-28 02:52:54 +0100
commit09ab7b754f61b12be27ca4493a140074f8c261bc (patch)
tree847bcee6e64da5e01bd50c865530c66648dde7b8 /dev-python
parentsys-cluster/ceph: drop myself as a maintainer (diff)
downloadgentoo-09ab7b754f61b12be27ca4493a140074f8c261bc.tar.gz
gentoo-09ab7b754f61b12be27ca4493a140074f8c261bc.tar.bz2
gentoo-09ab7b754f61b12be27ca4493a140074f8c261bc.zip
dev-python/cryptography: add 37.0.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cryptography/Manifest2
-rw-r--r--dev-python/cryptography/cryptography-37.0.1.ebuild133
2 files changed, 135 insertions, 0 deletions
diff --git a/dev-python/cryptography/Manifest b/dev-python/cryptography/Manifest
index e4a9f125c803..0ef4b34669a6 100644
--- a/dev-python/cryptography/Manifest
+++ b/dev-python/cryptography/Manifest
@@ -9,8 +9,10 @@ DIST cfg-if-1.0.0.crate 7934 BLAKE2B e99a5589c11d79d77a4537b34ce0a45d37b981c123b
DIST chrono-0.4.19.crate 155663 BLAKE2B c92c273fb6475bbb2546dfb75eaa23321bc8f9a5fa8a7c652f527649b96ff8718fa932f52b500b02a4acae7837df5bdb14f69cb821d4962be2790dbd1d023a54 SHA512 a119349bfc2243a249f1d18b1ae548a04b30fecb75913a56f26d1ff8c0eb53097a2674d9141e2094018191cbbc1620843fbddaf52999824e077c1157f0907980
DIST cryptography-3.4.7.tar.gz 546893 BLAKE2B 49bc1e098ed1ba0181059b645f6668cda6332d196eaca55270ebce6e07e5bb6ab6724c5050fde20e89b7025773960d74ec782bb875badbbd5dc9a04db0a536f1 SHA512 3c4cf64bc0b067ccdbb71efe04c32ac9d673faea6cc4ccd13d6b1b61920be4785806d19359b7657d032a2ff1c011a8b4f16ec4924d9df8a59d1a875a7f844473
DIST cryptography-37.0.0.tar.gz 584360 BLAKE2B d2ff4e0185ea5ab8a5d3d3a1a9f67a87aeca6b01777c074b51bb936b4c7c8f8e46fd39c7ab6cb56d7a887c4fd83157a9fa650059aff51577c5d948fbe743e6d0 SHA512 bc73a4e73cdfdb0379535551c524dfcd06ee9d11f91bc4a8e8d725a9997b3468973c37b90d40f21237b9c66de78a13caf396a5bff8779c651f8a244704afc5a2
+DIST cryptography-37.0.1.tar.gz 585248 BLAKE2B c25d62110e49b52849856fa04fc62a72f7f57d8f7b6237e68a5aed4af5b770819440d0980ff0b3535dca076856a6c7bcf546ada705270bba9f41266d267f76f5 SHA512 751029ecfb911e70cd402f7bf1573ec6b4e1dd98bed27723e8c48e918cb417b2327af84f173dd21c986fe1d39a5721df38ccaa37f8b5ed569290c66c5e42f34a
DIST cryptography_vectors-3.4.7.tar.gz 35168102 BLAKE2B fbefd3ff96548dde012fd290aba1c99d57db376023d486910e486cc9c143461ef1ae9b77824cc03307723d35142f0360bc961b548a4edc02357d3f1a0e7e4e9f SHA512 269b50fa4c5300da6758006d12be42f998630d23053ef9af0eb588fc9e6994b044d8822cff105e338f4d0d746ed0e204a4a9c42f54667e355e1ce86e6754bbe9
DIST cryptography_vectors-37.0.0.tar.gz 35240400 BLAKE2B 23d7e6212809a9e3269ae8f2d3714450032c774516e44f083a74ad6f0d500ce2500a20bf0f12b31abfc9ef774984a1d587019489743d2e04e983ae9842b66a1b SHA512 41f12f0593fe2c57f77bb76226d685c8bb0f7f8de0f0b32e0991d55571842f2639399d719855cc6800e29a85ec4f45a1b93a7b10d290ed66112f5b5d8ddc718c
+DIST cryptography_vectors-37.0.1.tar.gz 35240482 BLAKE2B 031587f4ab33348c366654a4717f18bf8a252d428309a94807cf57f7fc39858dd3f33376ad1d5112e14023370ae3d39939e9f0bba54306a55c643c94b66f9a0f SHA512 ed34add6fd9821412bd03214d197693d66d7e0507c5d9a1ce888c020052776952f1e9f2f3e4c1437198aa77cf459cedf9366f4c56f518211c7e4611760b9558d
DIST indoc-0.3.6.crate 9663 BLAKE2B ca7a1f4d3cbedbee0ba0a3f19c4b3352ff90927eef744b7e4f1d60855d4dc4265202972e81e0fc06d1222d8d5fb322efc4ef669af7396b251248a1e45c91def2 SHA512 e900aa3b001df0fdbf1f543d8b679af317e85a1f95e26fc556213f2826a4f6c82d8c4f3f82de435e3591f8bc14e78eb22668d901dcbe2287f46740e0291afacd
DIST indoc-impl-0.3.6.crate 7933 BLAKE2B 93e232e360e8f02943ef9a9cabf16bc863d792d8096b8d9a13a07f0b7b396db590abf83b5444f082317059dad7578ffae974dbc8a7e56fbdbab817b7d2534725 SHA512 18406587ee56a09dd2062cee456af697efa903343de42c0ff618a64ddf2bf7efed5da02e7220fed2636c555a6ae18059018f5c3c9b44ba8d3e5a34ea5b53c806
DIST instant-0.1.12.crate 6128 BLAKE2B 728923f757c1ee4e4a7afb90e460eed81392068961240a538e5c6468e15a0b6491f590fb5f6cc46e6d78901ca232351f65abb9f2f230d8f4983c5e58c4011902 SHA512 fae494c00111c51c840f9dd6a10febe403e27ebb933dd16633a213e9c20f2bc11adeb431c71f8a6713bf88f270a010941e15d83df294e658791934f83a5d2407
diff --git a/dev-python/cryptography/cryptography-37.0.1.ebuild b/dev-python/cryptography/cryptography-37.0.1.ebuild
new file mode 100644
index 000000000000..982405fb07d6
--- /dev/null
+++ b/dev-python/cryptography/cryptography-37.0.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CARGO_OPTIONAL=yes
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+CRATES="
+ Inflector-0.11.4
+ aliasable-0.1.3
+ asn1-0.8.7
+ asn1_derive-0.8.7
+ autocfg-1.1.0
+ base64-0.13.0
+ bitflags-1.3.2
+ cfg-if-1.0.0
+ chrono-0.4.19
+ indoc-0.3.6
+ indoc-impl-0.3.6
+ instant-0.1.12
+ lazy_static-1.4.0
+ libc-0.2.124
+ lock_api-0.4.7
+ num-integer-0.1.44
+ num-traits-0.2.14
+ once_cell-1.10.0
+ ouroboros-0.15.0
+ ouroboros_macro-0.15.0
+ parking_lot-0.11.2
+ parking_lot_core-0.8.5
+ paste-0.1.18
+ paste-impl-0.1.18
+ pem-1.0.2
+ proc-macro-error-1.0.4
+ proc-macro-error-attr-1.0.4
+ proc-macro-hack-0.5.19
+ proc-macro2-1.0.37
+ pyo3-0.15.2
+ pyo3-build-config-0.15.2
+ pyo3-macros-0.15.2
+ pyo3-macros-backend-0.15.2
+ quote-1.0.18
+ redox_syscall-0.2.13
+ scopeguard-1.1.0
+ smallvec-1.8.0
+ stable_deref_trait-1.2.0
+ syn-1.0.91
+ unicode-xid-0.2.2
+ unindent-0.1.8
+ version_check-0.9.4
+ winapi-0.3.9
+ winapi-i686-pc-windows-gnu-0.4.0
+ winapi-x86_64-pc-windows-gnu-0.4.0
+"
+
+inherit cargo distutils-r1 multiprocessing
+
+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="
+ mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ test? (
+ mirror://pypi/c/cryptography_vectors/${VEC_P}.tar.gz
+ )
+"
+
+# extra licenses come from Rust deps
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+ >=dev-libs/openssl-1.0.2o-r6:0=
+"
+DEPEND="
+ ${RDEPEND}
+ $(python_gen_cond_dep '
+ >=dev-python/cffi-1.8:=[${PYTHON_USEDEP}]
+ ' 'python*')
+"
+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() {
+ sed -i -e 's:--benchmark-disable::' pyproject.toml || die
+
+ 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}/cryptography_vectors-${PV}"
+ local EPYTEST_IGNORE=(
+ tests/bench
+ )
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
+}