Install this version:
emerge -a =sys-power/autosuspend-10.1.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-power/autosuspend-10.1.0
Or alternatively:
emerge --autounmask-write -a =sys-power/autosuspend-10.1.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 10.1.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="A daemon to automatically suspend and wake up a system"
HOMEPAGE="
https://github.com/languitar/autosuspend
https://autosuspend.readthedocs.io
"
SRC_URI="
https://github.com/languitar/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mpd"
RDEPEND="
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/portalocker[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pygobject:3[${PYTHON_USEDEP}]
mpd? ( dev-python/python-mpd2[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/icalendar[${PYTHON_USEDEP}]
dev-python/jsonpath-ng[${PYTHON_USEDEP}]
dev-python/python-dbusmock[${PYTHON_USEDEP}]
dev-python/python-mpd2[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
dev-python/tzlocal[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-datadir pytest-httpserver pytest-mock )
EPYTEST_DESELECT=(
tests/test_checks_util.py::TestNetworkMixin::test_file_url
)
distutils_enable_tests pytest
distutils_enable_sphinx doc/source \
dev-python/furo \
dev-python/recommonmark \
dev-python/sphinx-autodoc-typehints \
dev-python/sphinx-issues \
dev-python/sphinxcontrib-plantuml
python_test() {
# Disable code coverage in tests by setting addopts to the empty value.
epytest -o addopts=
}
src_install() {
distutils-r1_src_install
mv "${ED}/usr/etc" "${ED}/etc" || die
}
Manage flags for this package:
euse -i <flag> -p sys-power/autosuspend |
euse -E <flag> -p sys-power/autosuspend |
euse -D <flag> -p sys-power/autosuspend
dev-python/dbus-python[] dev-python/portalocker[] dev-python/psutil[] dev-python/pygobject:3[] mpd? ( dev-python/python-mpd2[] )
test? ( dev-python/freezegun[] dev-python/icalendar[] dev-python/jsonpath-ng[] dev-python/python-dbusmock[] dev-python/python-mpd2[] dev-python/pytz[] dev-python/tzlocal[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | autosuspend-10.1.0.gh.tar.gz | 166538 bytes | https://github.com/languitar/autosuspend/archive/v10.1.0.tar.gz |