Install this version:
emerge -a =dev-python/pms5003-1.0.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/pms5003-1.0.1
Or alternatively:
emerge --autounmask-write -a =dev-python/pms5003-1.0.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1
DESCRIPTION="Python driver for PMS5003 particulate-matter sensors"
HOMEPAGE="
https://github.com/pimoroni/pms5003-python
https://pypi.org/project/pms5003/
"
SRC_URI="https://github.com/pimoroni/${PN}-python/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-python-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
RDEPEND="
dev-libs/libgpiod[python]
>=dev-python/gpiodevice-0.0.4[${PYTHON_USEDEP}]
dev-python/pyserial[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}]
test? ( dev-python/mock[${PYTHON_USEDEP}] )
"
DOCS=( CHANGELOG.md README.md )
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
sed -i \
-e '/ "README.md",/d' \
-e '/ "CHANGELOG.md",/d' \
-e '/ "LICENSE"/d' \
pyproject.toml || die
distutils-r1_src_prepare
}
dev-libs/libgpiod[python] >=dev-python/gpiodevice-0.0.4[] dev-python/pyserial[]
dev-python/hatch-fancy-pypi-readme[] test? ( dev-python/mock[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | pms5003-1.0.1.gh.tar.gz | 11846 bytes | https://github.com/pimoroni/pms5003-python/archive/refs/tags/v1.0.1.tar.gz |