From 88bd7178c17314c9945b4f8fccf04b9292fa8b19 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Tue, 10 Nov 2015 10:16:13 +0100 Subject: dev-python/backports-abc: New package written by me Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher --- dev-python/backports-abc/backports-abc-0.4.ebuild | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dev-python/backports-abc/backports-abc-0.4.ebuild (limited to 'dev-python/backports-abc/backports-abc-0.4.ebuild') diff --git a/dev-python/backports-abc/backports-abc-0.4.ebuild b/dev-python/backports-abc/backports-abc-0.4.ebuild new file mode 100644 index 000000000000..772b67d9ea2c --- /dev/null +++ b/dev-python/backports-abc/backports-abc-0.4.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 ) + +inherit distutils-r1 + +MY_PN=${PN/-/_} +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Backport of Python 3.5's 'collections.abc' module" +HOMEPAGE="https://github.com/cython/backports_abc https://pypi.python.org/pypi/backports_abc/" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +# https://github.com/cython/backports_abc/issues/4 +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +S=${WORKDIR}/${MY_P} + +python_test() { + PYTHONPATH="${BUILD_DIR}/lib" "${PYTHON}" tests.py || die "tests failed with ${EPYTHON}" +} -- cgit v1.2.3-65-gdbad