diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-10-14 21:35:06 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-10-14 21:43:45 +0200 |
commit | ee5552db93682950ab9b6d87214f3fde209841c4 (patch) | |
tree | 002df525719317dd049af6d911cc57688e17c206 /dev-python/backports-os/backports-os-0.1.1.ebuild | |
parent | sci-chemistry/tm-align: EAPI-6 bump (diff) | |
download | gentoo-ee5552db93682950ab9b6d87214f3fde209841c4.tar.gz gentoo-ee5552db93682950ab9b6d87214f3fde209841c4.tar.bz2 gentoo-ee5552db93682950ab9b6d87214f3fde209841c4.zip |
dev-python/backports-os: New package needed for noto-emoji
Bug: https://bugs.gentoo.org/616974
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-python/backports-os/backports-os-0.1.1.ebuild')
-rw-r--r-- | dev-python/backports-os/backports-os-0.1.1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/backports-os/backports-os-0.1.1.ebuild b/dev-python/backports-os/backports-os-0.1.1.ebuild new file mode 100644 index 000000000000..0e97f3e2dd19 --- /dev/null +++ b/dev-python/backports-os/backports-os-0.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6,7} ) +inherit distutils-r1 + +DESCRIPTION="Backport of new features in Python's os module" +HOMEPAGE="https://github.com/pjdelport/backports.os" +SRC_URI="https://github.com/pjdelport/backports.os/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="PYTHON" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + dev-python/backports[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] +" + +S="${WORKDIR}/${P/-/.}" + +src_prepare() { + export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}" + distutils-r1_src_prepare +} + +python_test() { + esetup.py test +} + +python_install() { + distutils-r1_python_install + # main namespace provided by dev-python/backports + rm "${ED}/$(python_get_sitedir)"/backports/__init__.py* || die + rm -rf "${ED}/$(python_get_sitedir)"/backports/__pycache__ || die +} |