dev-python/sortedcollections: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-08-14 05:33:18 +05:00
parent 8c19db2765
commit 95d6e3c1bd
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
DESCRIPTION="Apache2 licensed Python sorted collections library"
HOMEPAGE="
https://pypi.org/project/sortedcollections
https://github.com/grantjenks/python-sortedcollections
"
SRC_URI="https://github.com/grantjenks/python-${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/python-${PN}-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
RDEPEND="dev-python/sortedcontainers[${PYTHON_USEDEP}]"
BDEPEND="doc? ( ${RDEPEND} )"
distutils_enable_tests pytest
distutils_enable_sphinx docs
src_prepare() {
# breaks pytest
rm tox.ini || die
distutils-r1_src_prepare
}
python_test() {
epytest --doctest-glob="*.rst"
}