mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
dev-python/zope-hookable: New package, v5.1.0
New dependency of dev-python/zope-component. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
1
dev-python/zope-hookable/Manifest
Normal file
1
dev-python/zope-hookable/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST zope.hookable-5.1.0.tar.gz 21922 BLAKE2B c8bb0c6fb20718127fc2b3d7a2654035a14f87a52b41331ec3d564fe7dd175a977911e1a5847e544e30eeeb473b1fdb5d75ece7ece4b5a4212fec8f6d85a3d44 SHA512 af63fd7c83bbaf2c6c1faaefc7081a9a739b835fb5f1fe48f8f6b66a82596d52d0559df8de1beceb129578ee2ed9711ee05a9aa2dd0eec98dca6db40b45a4665
|
||||
11
dev-python/zope-hookable/metadata.xml
Normal file
11
dev-python/zope-hookable/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">zopefoundation/zope.hookable</remote-id>
|
||||
<remote-id type="pypi">zope.hookable</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
47
dev-python/zope-hookable/zope-hookable-5.1.0.ebuild
Normal file
47
dev-python/zope-hookable/zope-hookable-5.1.0.ebuild
Normal file
@@ -0,0 +1,47 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=${PN/-/.}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Efficient creation of 'hookable' objects"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/zope.hookable/
|
||||
https://github.com/zopefoundation/zope.hookable/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="ZPL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/zope-testing[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
# strip rdep specific to namespaces
|
||||
sed -i -e "/'setuptools'/d" setup.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
distutils-r1_python_compile
|
||||
find "${BUILD_DIR}" -name '*.pth' -delete || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
eunittest -s "${BUILD_DIR}/install$(python_get_sitedir)/zope/hookable/tests"
|
||||
}
|
||||
Reference in New Issue
Block a user