dev-python/nab-index - 0.0.30 (guru)

Search

Install

Install this version:

emerge -a =dev-python/nab-index-0.0.30

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/nab-index-0.0.30

Or alternatively:

emerge --autounmask-write -a =dev-python/nab-index-0.0.30

Package Information

Description:
Pypi Simple-API client and on-disk cache for nab
Homepage:
https://github.com/notatallshaw/nab/ https://pypi.org/project/nab-index/
License:
MIT

Ebuild Details

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

EAPI=8

PYPI_VERIFY_REPO=https://github.com/notatallshaw/nab
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{13..15} )

inherit distutils-r1 pypi

DESCRIPTION="Pypi Simple-API client and on-disk cache for nab"
HOMEPAGE="
	https://github.com/notatallshaw/nab/
	https://pypi.org/project/nab-index/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	~dev-python/nab-markersets-${PV}[${PYTHON_USEDEP}]
	~dev-python/nab-provider-${PV}[${PYTHON_USEDEP}]
	~dev-python/nab-resolver-${PV}[${PYTHON_USEDEP}]
	dev-python/truststore[${PYTHON_USEDEP}]
	dev-python/typing-extensions[${PYTHON_USEDEP}]
"

BDEPEND="
	dev-python/hatch-vcs[${PYTHON_USEDEP}]
	dev-python/packaging[${PYTHON_USEDEP}]
	test? ( dev-python/httpx2 )
"

EPYTEST_PLUGINS=( pytest-httpx hypothesis )

distutils_enable_tests pytest

python_test() {
	# skip tests that expect monorepo
	local EPYTEST_DESELECT=(
		tests/test_index_parsed_cache.py::TestReadPathRebuild::test_over_nested_blob_warns_and_reparses
		tests/client/test_listings.py::test_oversized_version_is_skipped
		tests/test_parsed_listing_codec.py::test_over_nested_blob_is_miss
		tests/test_parsed_listing_codec.py::test_over_nested_blob_names_its_depth
		tests/test_read_fresh_parsed_listing.py::TestReadFreshParsedListing::test_over_nested_policy_returns_none
		tests/test_read_fresh_parsed_listing.py::TestReadFreshParsedListing::test_over_nested_blob_returns_none
	)

	epytest
}

Inherited Eclasses

Dependencies

RDEPEND

	~dev-python/nab-markersets-0.0.30[]
	~dev-python/nab-provider-0.0.30[]
	~dev-python/nab-resolver-0.0.30[]
	dev-python/truststore[]
	dev-python/typing-extensions[]

BDEPEND

	dev-python/hatch-vcs[]
	dev-python/packaging[]
	test? ( dev-python/httpx2 )