gentoo/dev-python/importlib_resources/importlib_resources-1.0.2.ebuild
Ralph Seichter 9c37fa9115
dev-python/importlib_resources: new package.
Backport of Python 3.7's standard library importlib.resources module
for Python 2.7, and 3.4 through 3.6. Users of Python 3.7 and beyond
are encouraged to use the standard library module, and in fact for
these versions, importlib_resources just shadows that module.

Gentoo specific, I removed Python 3.4 from PYTHON_COMPAT, because that
version is masked and will be removed soon (see
https://github.com/gentoo/gentoo/pull/11482#issuecomment-476083100).

Signed-off-by: Ralph Seichter <gentoo@seichter.de>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Closes: https://bugs.gentoo.org/681670
Closes: https://github.com/gentoo/gentoo/pull/11482
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
2019-03-26 17:45:25 +01:00

28 lines
573 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{5,6} )
inherit distutils-r1
DESCRIPTION="Read resources from Python packages"
HOMEPAGE="https://importlib-resources.readthedocs.io/en/latest/"
SRC_URI="https://gitlab.com/python-devs/${PN}/-/archive/${PV}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
python_test() {
esetup.py test
}