Install this version:
emerge -a =dev-python/python-dotenv-1.2.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/python-dotenv-1.2.4
Or alternatively:
emerge --autounmask-write -a =dev-python/python-dotenv-1.2.4
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit pypi distutils-r1
DESCRIPTION="Read key-value pairs from a .env file and set them as environment variables"
HOMEPAGE="https://pypi.org/project/python-dotenv/"
LICENSE="BSD-3-Clause"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/click[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_install() {
distutils-r1_src_install
# Avoid collision with dev-ruby/dotenv (bug #798648)
mv "${ED}"/usr/bin/{,python-}dotenv || die
}
Manage flags for this package:
euse -i <flag> -p dev-python/python-dotenv |
euse -E <flag> -p dev-python/python-dotenv |
euse -D <flag> -p dev-python/python-dotenv