dev-python/zipp: Add from gentoo

It's from gentoo commit 6b290794fe12f8998ed719abe5d3eb8836f70950.

It's a dependency of dev-python/importlib_metadata.
This commit is contained in:
Krzesimir Nowak 2021-11-17 21:29:34 +01:00
parent e85da15f3f
commit 10e3c0052e
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST zipp-3.4.1.tar.gz 16545 BLAKE2B 5ebdc4d1e932d72502866701db8b0f352aca3194890d9ed340722bb2a65c4e3be0f6bb54f49567e4fd46faaec3379d0c1d668e1a55f63bea6c57e4ef0c2f9e01 SHA512 2ba50109efd0ceea9eb1d57e2d839f522b5a78a8dae344d6da54b79305dd46bff23f1116f562127290152c0b100369439c17fe9dc3fb14d0b42beaa48348ebe6

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>sbraz@gentoo.org</email>
<name>Louis Sautier</name>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">zipp</remote-id>
<remote-id type="github">jaraco/zipp</remote-id>
<bugs-to>https://github.com/jaraco/zipp/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,40 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( pypy3 python3_{7..10} )
inherit distutils-r1
DESCRIPTION="Backport of pathlib-compatible object wrapper for zip files"
HOMEPAGE="https://github.com/jaraco/zipp"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
BDEPEND="
dev-python/toml[${PYTHON_USEDEP}]
>=dev-python/setuptools_scm-3.4.2[${PYTHON_USEDEP}]
test? ( dev-python/jaraco-itertools[${PYTHON_USEDEP}] )
"
distutils_enable_sphinx docs \
">=dev-python/jaraco-packaging-3.2" \
">=dev-python/rst-linker-1.9"
distutils_enable_tests pytest
python_prepare_all() {
# Skip a potentially flaky performance test
sed -i -e '/^import func_timeout\|^ *@func_timeout\.func_set_timeout/d' \
-e 's/test_implied_dirs_performance/_&/' test_zipp.py || die
distutils-r1_python_prepare_all
}
python_test() {
# Ignoring zipp.py from ${S} avoids ImportPathMismatchError with Python < 3.8
# by ensuring only zipp from ${BUILD_DIR} is loaded
epytest --ignore zipp.py
}