1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7} )
9 DESCRIPTION="Backport of new features in Python's os module"
10 HOMEPAGE="https://github.com/pjdelport/backports.os"
11 SRC_URI="https://github.com/pjdelport/backports.os/archive/v${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86"
20 dev-python/backports[${PYTHON_USEDEP}]
21 dev-python/future[${PYTHON_USEDEP}]
22 dev-python/setuptools_scm[${PYTHON_USEDEP}]
25 S="${WORKDIR}/${P/-/.}"
28 export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
29 distutils-r1_src_prepare
37 distutils-r1_python_install
38 # main namespace provided by dev-python/backports
39 rm "${D}/$(python_get_sitedir)"/backports/__init__.py* || die
40 rm -rf "${D}/$(python_get_sitedir)"/backports/__pycache__ || die