summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-03 07:13:57 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-03 07:23:45 +0100
commit2f0fc7ca53db6399c2779cf439476b8cfe5c54d8 (patch)
treed410982392b3361d784e15ca0ac2e6a8d13d230a /dev-python/zope-schema
parentnet-misc/electrum: Bump to 4.3.3 (diff)
downloadgentoo-2f0fc7ca53db6399c2779cf439476b8cfe5c54d8.tar.gz
gentoo-2f0fc7ca53db6399c2779cf439476b8cfe5c54d8.tar.bz2
gentoo-2f0fc7ca53db6399c2779cf439476b8cfe5c54d8.zip
dev-python/zope-schema: Bump to 7.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/zope-schema')
-rw-r--r--dev-python/zope-schema/Manifest1
-rw-r--r--dev-python/zope-schema/zope-schema-7.0.1.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/zope-schema/Manifest b/dev-python/zope-schema/Manifest
index f78fac1abf2e..5be5d34c7196 100644
--- a/dev-python/zope-schema/Manifest
+++ b/dev-python/zope-schema/Manifest
@@ -1,2 +1,3 @@
DIST zope.schema-6.2.1.tar.gz 124649 BLAKE2B 71ac712d3dbd6c9063ddc213263ce3a356f0ec757466cacdbc216af95cdb9de3ca7f891c203880f9f22612e01259491d83c49fcbe9985ecaabf1629ea14e12ea SHA512 e3fabd3deabb4ac2087792be94b919b7c9a0f0c741316d6f67a42e24fe617091754183b32d8433664b6fa95569009def8e7e1e08f34013282b042eb32da323a6
DIST zope.schema-7.0.0.tar.gz 108220 BLAKE2B 01fd94d6d9b33af7ffc12ced2724fc795f0fa2dd8a76c76e06ed8af837778335cdc8a6d87e41e6e934b0df8e59b30e94f5e6c1b4752dcfaefcbbae53cbcef238 SHA512 27e796d2ed5f7b053c5ab4a23f455b72ddc4f0ce10c38c58f9974ec20abb97bf9d7f4b0c11c6ab73e9fefdc726c614155abb69b987bf3fa37d37b1224bcbc106
+DIST zope.schema-7.0.1.tar.gz 108737 BLAKE2B ca0d280186ebdaf53abc28bdb1684e31f97e4f4f9d235604702c2652bd4fa0a027d947f375ecee7aba598f072ce140908aaab3b107d6c743d6ee929db5de2fb5 SHA512 a8da9ac2e7239d15ed6cef83b4f500bca989c9ef2b7f1cd06ce532c260a8b8488b6fa42a6b2cfaeee505db87d3235f81815dc7eb80401c9e482141f8bf717e62
diff --git a/dev-python/zope-schema/zope-schema-7.0.1.ebuild b/dev-python/zope-schema/zope-schema-7.0.1.ebuild
new file mode 100644
index 000000000000..fe0606a32410
--- /dev/null
+++ b/dev-python/zope-schema/zope-schema-7.0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} pypy3 )
+
+inherit distutils-r1
+
+MY_PN=${PN/-/.}
+MY_P=${MY_PN}-${PV}
+DESCRIPTION="Zope schema Architecture"
+HOMEPAGE="
+ https://pypi.org/project/zope.schema/
+ https://github.com/zopefoundation/zope.schema/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ZPL"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+ dev-python/zope-event[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-5.0.0[${PYTHON_USEDEP}]
+ !dev-python/namespace-zope
+"
+BDEPEND="
+ test? (
+ dev-python/zope-i18nmessageid[${PYTHON_USEDEP}]
+ 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() {
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ distutils_write_namespace zope
+ eunittest
+}