Install this version:
emerge -a =dev-python/msgspec-0.21.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/msgspec-0.21.1
Or alternatively:
emerge --autounmask-write -a =dev-python/msgspec-0.21.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.21.1 | 8 | ~amd64 | 0 |
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_1{0,1,2,3,4,5} )
DISTUTILS_EXT=1
inherit distutils-r1
DESCRIPTION="Fast serialization and validation library."
HOMEPAGE="https://pypi.org/project/msgspec/"
SRC_URI="https://github.com/msgspec/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
# tomllib covers this from 3.11 on.
# shellcheck disable=SC2016
RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]
$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' python3_10)"
EPYTEST_IGNORE=( "tests/test_cpylint.py" )
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
BDEPEND+="
test? (
dev-python/attrs[${PYTHON_USEDEP}]
dev-python/msgpack[${PYTHON_USEDEP}]
)
"
python_test() {
rm -rf "${PN}" || die
epytest -m 'not mypy and not pyright'
}
dev-python/pyyaml[${PYTHON_USEDEP}] $(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' python3_10)
test? ( dev-python/attrs[] dev-python/msgpack[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | msgspec-0.21.1.gh.tar.gz | 1333165 bytes | https://github.com/msgspec/msgspec/archive/refs/tags/0.21.1.tar.gz |