dev-python/nox - 2026.02.09 (gentoo)

Search

Deprecated: This version is deprecated.

Reason: Test automation tools. They are generally used to run the test suite across multiple Python versions, i.e. what our eclasses do for you already. They usually can't work inside network sandbox (since they fetch and install all the dependencies inside the venv), so even if they are listed in dependencies, your package probably does not actually need them to run tests.

Deprecated by Michał Górny on 2022-06-19

Package Information

Description:
Flexible test automation for Python
Homepage:
https://github.com/wntrblm/nox/ https://pypi.org/project/nox/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
2026.02.09 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )

inherit distutils-r1

DESCRIPTION="Flexible test automation for Python"
HOMEPAGE="
	https://github.com/wntrblm/nox/
	https://pypi.org/project/nox/
"
SRC_URI="
	https://github.com/wntrblm/nox/archive/${PV}.tar.gz
		-> ${P}.gh.tar.gz
"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	>=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}]
	>=dev-python/attrs-24.1[${PYTHON_USEDEP}]
	>=dev-python/colorlog-2.6.1[${PYTHON_USEDEP}]
	>=dev-python/dependency-groups-1.1[${PYTHON_USEDEP}]
	>=dev-python/humanize-4[${PYTHON_USEDEP}]
	>=dev-python/packaging-22[${PYTHON_USEDEP}]
	>=dev-python/virtualenv-20.15[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		>=dev-python/pbs-installer-2025.01.06[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

python_test() {
	local EPYTEST_DESELECT=(
		# TODO: conda?
		'tests/test_sessions.py::TestSessionRunner::test__create_venv_options[nox.virtualenv.CondaEnv.create-conda-CondaEnv]'
		# Internet
		tests/test_virtualenv.py::test_uv_install
		tests/test_main.py::test_noxfile_script_mode
	)

	case ${EPYTHON} in
		pypy3*)
			EPYTEST_DESELECT+=(
				# hardcoded CPython assumption
				tests/test_tox_to_nox.py::test_commands_with_requirements
				tests/test_tox_to_nox.py::test_skipinstall
				tests/test_tox_to_nox.py::test_trivial
				tests/test_tox_to_nox.py::test_usedevelop
			)
			;;
	esac

	epytest -o tmp_path_retention_policy=all
}

Dependencies

RDEPEND

	>=dev-python/argcomplete-1.9.4[${PYTHON_USEDEP}]
	>=dev-python/attrs-24.1[${PYTHON_USEDEP}]
	>=dev-python/colorlog-2.6.1[${PYTHON_USEDEP}]
	>=dev-python/dependency-groups-1.1[${PYTHON_USEDEP}]
	>=dev-python/humanize-4[${PYTHON_USEDEP}]
	>=dev-python/packaging-22[${PYTHON_USEDEP}]
	>=dev-python/virtualenv-20.15[${PYTHON_USEDEP}]

BDEPEND

	test? (
		>=dev-python/pbs-installer-2025.01.06[${PYTHON_USEDEP}]
	)

Manifest for 2026.02.09

Type File Size Source URLs
DIST nox-2026.02.09.gh.tar.gz 4031394 bytes https://github.com/wntrblm/nox/archive/2026.02.09.tar.gz