From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 09BD1158090 for ; Wed, 11 May 2022 11:29:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60F6BE0940; Wed, 11 May 2022 11:29:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 404DEE08EF for ; Wed, 11 May 2022 11:29:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F33483419D1 for ; Wed, 11 May 2022 11:29:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A37B2458 for ; Wed, 11 May 2022 11:29:19 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1652268557.a61c333cbe5a5305a167de1a5dc95a76d8f7a33e.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/orjson/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/orjson/orjson-3.6.8-r1.ebuild X-VCS-Directories: dev-python/orjson/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: a61c333cbe5a5305a167de1a5dc95a76d8f7a33e X-VCS-Branch: dev Date: Wed, 11 May 2022 11:29:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 22f77cd6-cd1d-4a65-9a54-a660f7b8310d X-Archives-Hash: 9aff11eb97c8f09dc2dde3029dddfbf6 commit: a61c333cbe5a5305a167de1a5dc95a76d8f7a33e Author: Alessandro Barbieri gmail com> AuthorDate: Wed May 11 10:50:49 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Wed May 11 11:29:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a61c333c dev-python/orjson: build with pep517 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/orjson/orjson-3.6.8-r1.ebuild | 74 ++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/dev-python/orjson/orjson-3.6.8-r1.ebuild b/dev-python/orjson/orjson-3.6.8-r1.ebuild new file mode 100644 index 000000000..1bc00f5c2 --- /dev/null +++ b/dev-python/orjson/orjson-3.6.8-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + ahash-0.7.6 + arrayvec-0.7.2 + associative-cache-1.0.1 + autocfg-1.1.0 + bytecount-0.6.2 + cfg-if-1.0.0 + chrono-0.4.19 + encoding_rs-0.8.31 + getrandom-0.2.6 + inlinable_string-0.1.15 + itoa-1.0.1 + libc-0.2.123 + libm-0.1.4 + num-integer-0.1.44 + num-traits-0.2.14 + once_cell-1.10.0 + packed_simd_2-0.3.7 + pyo3-build-config-0.16.4 + pyo3-ffi-0.16.4 + ryu-1.0.9 + serde-1.0.136 + serde_json-1.0.79 + simdutf8-0.1.4 + smallvec-1.8.0 + target-lexicon-0.12.3 + version_check-0.9.4 + wasi-0.10.2+wasi-snapshot-preview1 +" +DISTUTILS_USE_PEP517=maturin +PYTHON_COMPAT=( python3_{8..9} ) +QA_FLAGS_IGNORED="*" + +inherit cargo distutils-r1 + +DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" +HOMEPAGE="https://github.com/ijl/orjson" +SRC_URI=" + https://github.com/ijl/orjson/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + $(cargo_crate_uris ${CRATES}) +" + +LICENSE=" + Apache-2.0 MIT + BSD + || ( Apache-2.0 MIT ) + || ( Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT ) + || ( Apache-2.0 Boost-1.0 ) +" +KEYWORDS="~amd64" +SLOT="0" +IUSE="debug" + +BDEPEND=" + test? ( + dev-python/arrow[${PYTHON_USEDEP}] + dev-python/orjson[${PYTHON_USEDEP}] + dev-python/pendulum[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + + $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' python3_{8,9}) + $(python_gen_cond_dep '>=dev-python/xxhash-1.4.3[${PYTHON_USEDEP}]' python3_8) + ) +" + +PATCHES=( "${FILESDIR}/${PN}-3.6.7-no-strip.patch" ) + +distutils_enable_tests pytest