Install this version:
emerge -a =dev-python/apyrat-0.2.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/apyrat-0.2.2
Or alternatively:
emerge --autounmask-write -a =dev-python/apyrat-0.2.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.2.2 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 pypi
DESCRIPTION="An Aparat video downloader"
HOMEPAGE="
https://github.com/CodeWithEmad/apyrat
https://pypi.org/project/apyrat/
"
SRC_URI="$(pypi_sdist_url "${PN^}" "${PV}")"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/wget[${PYTHON_USEDEP}]
"
# I was too lazy to add it
RESTRICT="test"
src_prepare() {
sed -i -e 's:src:apyrat:g' src/apyrat.py || die
sed -i -e 's:src:apyrat:g' src/cli.py || die
distutils-r1_src_prepare
}
python_install() {
distutils-r1_python_install
mv "${D}/usr/lib/python3.14/site-packages/src" "${D}/usr/lib/python3.14/site-packages/apyrat" || die
}