1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
13 DESCRIPTION="Backport of Python 3.3's lzma module for XZ/LZMA compressed files"
14 HOMEPAGE="https://github.com/peterjc/backports.lzma/ https://pypi.org/project/backports.lzma/"
15 SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
19 KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos"
21 RESTRICT="!test? ( test )"
23 RDEPEND="app-arch/xz-utils:0=
24 dev-python/backports[${PYTHON_USEDEP}]"
26 test? ( app-arch/xz-utils:0[extra-filters(+)] )"
31 "${EPYTHON}" test/test_lzma.py || die "tests failed with ${EPYTHON}"
35 # main namespace provided by dev-python/backports
36 rm "${BUILD_DIR}"/lib/backports/__init__.py || die
37 rm -f backports/__init__.py || die
39 distutils-r1_python_install