diff --git a/dev-python/toposort/Manifest b/dev-python/toposort/Manifest new file mode 100644 index 0000000000..6e30f532ee --- /dev/null +++ b/dev-python/toposort/Manifest @@ -0,0 +1 @@ +DIST toposort-1.6.tar.gz 11690 BLAKE2B a9a57fd182a3324d43112c3f84a20039f032d99bf2c35c6678a6a08c23b123f18610f460529dd39c769b935d98270a25ded2f1a483e4e6f06d3ccc501b340cb8 SHA512 8dc30b5d5a6f476756520236bc93840243690779783ec8f0b5ef0f72c64d774177b25d10d2e024cda968f81352abbc4f89f3069760fc3a86bd5ee387e7951928 diff --git a/dev-python/toposort/metadata.xml b/dev-python/toposort/metadata.xml new file mode 100644 index 0000000000..5848888409 --- /dev/null +++ b/dev-python/toposort/metadata.xml @@ -0,0 +1,13 @@ + + + + + torokhov-s-a@yandex.ru + Sergey Torokhov + + Implements a topological sort algorithm. + + toposort + ericvsmith/toposort + + diff --git a/dev-python/toposort/toposort-1.6.ebuild b/dev-python/toposort/toposort-1.6.ebuild new file mode 100644 index 0000000000..652575a8f7 --- /dev/null +++ b/dev-python/toposort/toposort-1.6.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +DESCRIPTION="A topological sort for python" +HOMEPAGE="https://gitlab.com/ericvsmith/toposort" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( dev-python/pytest[${PYTHON_USEDEP}] ) +" + +DOCS=() + +python_test() { + ${EPYTHON} setup.py test || die +}