gentoo/dev-python/orjson/orjson-3.10.15.ebuild
Arthur Zamarin d5a4a10fa0
dev-python/orjson: Stabilize 3.10.15 sparc, #949462
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-02-22 16:43:26 +02:00

92 lines
1.7 KiB
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{10..13} )
CRATES="
associative-cache@2.0.0
bytecount@0.6.8
castaway@0.2.3
cc@1.2.1
cfg-if@1.0.0
compact_str@0.8.1
crunchy@0.2.2
encoding_rs@0.8.35
gimli@0.31.1
half@2.4.1
itoa@1.0.14
itoap@1.0.1
jiff@0.1.21
libc@0.2.169
memchr@2.7.4
once_cell@1.20.2
portable-atomic-util@0.2.4
portable-atomic@1.10.0
proc-macro2@1.0.92
quote@1.0.38
rustversion@1.0.19
ryu@1.0.18
serde@1.0.217
serde_derive@1.0.217
serde_json@1.0.135
shlex@1.3.0
simdutf8@0.1.5
smallvec@1.13.2
static_assertions@1.1.0
syn@2.0.95
target-lexicon@0.13.1
unicode-ident@1.0.14
unwinding@0.2.5
uuid@1.11.0
version_check@0.9.5
xxhash-rust@0.8.15
"
RUST_MIN_VER="1.74.1"
inherit cargo distutils-r1 pypi
DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
HOMEPAGE="
https://github.com/ijl/orjson/
https://pypi.org/project/orjson/
"
SRC_URI+="
${CARGO_CRATE_URIS}
"
LICENSE="|| ( Apache-2.0 MIT )"
# Dependent crate licenses
LICENSE+="
Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 MIT Unicode-3.0
"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
BDEPEND="
>=dev-util/maturin-1.7.8[${PYTHON_USEDEP}]
test? (
dev-python/arrow[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_USEDEP}]
' 'python3*')
)
"
QA_FLAGS_IGNORED=".*"
distutils_enable_tests pytest
export UNSAFE_PYO3_SKIP_VERSION_CHECK=1
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}