# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{13..15} )
DISTUTILS_USE_PEP517=uv-build
inherit distutils-r1

DESCRIPTION="The bidirectional mapping library for Python"
HOMEPAGE="
	https://pypi.org/project/bidict/
	https://github.com/jab/bidict
"
SRC_URI="https://github.com/jab/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

DOCS=( {CHANGELOG,README,SECURITY}.rst )

BDEPEND="
	test? (
		dev-python/sortedcollections[${PYTHON_USEDEP}]
		dev-python/typing-extensions[${PYTHON_USEDEP}]
	)
"

EPYTEST_IGNORE=( tests/test_microbenchmarks.py )

EPYTEST_PLUGINS=( hypothesis pytest-xdist )

distutils_enable_tests pytest

distutils_enable_sphinx docs \
	dev-python/furo