# 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} ) # upstream is vendoring crates CRATES=" " 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/ " 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 python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest }