From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E154213835A for ; Wed, 2 Sep 2020 05:14:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2E3FE0843; Wed, 2 Sep 2020 05:14:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8FC4E083D for ; Wed, 2 Sep 2020 05:14:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B2DD340B57 for ; Wed, 2 Sep 2020 05:14:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E5E2327 for ; Wed, 2 Sep 2020 05:14:09 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1599022828.cd9172fb91c1f3649997a06f2f063223a3e5fa4e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/pyzor/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-filter/pyzor/Manifest mail-filter/pyzor/metadata.xml mail-filter/pyzor/pyzor-1.0.1_pre20200523.ebuild X-VCS-Directories: mail-filter/pyzor/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cd9172fb91c1f3649997a06f2f063223a3e5fa4e X-VCS-Branch: master Date: Wed, 2 Sep 2020 05:14:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6f517463-2ae1-4ad4-9aae-54d402ba0a5a X-Archives-Hash: ae81f03b1a3a5a9e7d5423ef6dfe9ab4 commit: cd9172fb91c1f3649997a06f2f063223a3e5fa4e Author: Tomáš Mózes gmail com> AuthorDate: Sat May 23 18:40:30 2020 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 2 05:00:28 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd9172fb mail-filter/pyzor: add snapshot with python 3.{7,8} support Bug: https://bugs.gentoo.org/718326 Signed-off-by: Tomáš Mózes gmail.com> Signed-off-by: Sam James gentoo.org> mail-filter/pyzor/Manifest | 1 + mail-filter/pyzor/metadata.xml | 4 ++ mail-filter/pyzor/pyzor-1.0.1_pre20200523.ebuild | 61 ++++++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/mail-filter/pyzor/Manifest b/mail-filter/pyzor/Manifest index 4cfe0abd497..fc35455a69a 100644 --- a/mail-filter/pyzor/Manifest +++ b/mail-filter/pyzor/Manifest @@ -1 +1,2 @@ DIST pyzor-1.0.0.tar.gz 126276 BLAKE2B c60f26c53bf118c88dacbc49ddd414473748af1868b383a9c937ecf3cfe426ecdd60f64388fe7e555bd4641ef445769600e40879279dd544ef9ea32bd0dab6b9 SHA512 b3fb8b2c5261e187a2ab3a5a3b12d221df7de08766c6bb2ad9990c0f23517534871ecc9d5ad529e79b0d0aef8b2b800728320c57435a8c0d8c3f80a4ba0f7e4a +DIST pyzor-f46159bd6519cebcebf59e9334a7920371111d75.tar.gz 138077 BLAKE2B 13ad30f06ce32a24a42dd5aaa21ad2a6700df1bac3dc54a86532748688b094ee0f56a8e28e34336298388c6e0b95868e95d040866c9afa561d867069496608fe SHA512 afe3b14794aea68b1a7d72840257976c7c9f755a6f6dcaaf6ebacab465c176fe2aa84f3fe176006cdbe26ef0b07ed949f75f6ef729f65c604fadf6ce8472da8f diff --git a/mail-filter/pyzor/metadata.xml b/mail-filter/pyzor/metadata.xml index 21a8605f271..c8b645011f0 100644 --- a/mail-filter/pyzor/metadata.xml +++ b/mail-filter/pyzor/metadata.xml @@ -10,6 +10,10 @@ Enables the Gdbm back-end database engine for pyzord + + Enables the MySQL back-end database engine for pyzord through + dev-python/mysqlclient. + Enables the redis back-end database engine for pyzord through dev-python/redis-py diff --git a/mail-filter/pyzor/pyzor-1.0.1_pre20200523.ebuild b/mail-filter/pyzor/pyzor-1.0.1_pre20200523.ebuild new file mode 100644 index 00000000000..690769b4a58 --- /dev/null +++ b/mail-filter/pyzor/pyzor-1.0.1_pre20200523.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8} ) +inherit distutils-r1 + +COMMIT="f46159bd6519cebcebf59e9334a7920371111d75" + +DESCRIPTION="A distributed, collaborative spam detection and filtering network" +HOMEPAGE="https://github.com/SpamExperts/pyzor" +SRC_URI="https://github.com/SpamExperts/pyzor/archive/${COMMIT}.tar.gz -> ${PN}-${COMMIT}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux" + +IUSE="doc gdbm gevent mysql pyzord redis test" +RESTRICT="!test? ( test )" + +RDEPEND=" + pyzord? ( + gdbm? ( $(python_gen_impl_dep 'gdbm') ) + gevent? ( dev-python/gevent[${PYTHON_USEDEP}] ) + mysql? ( dev-python/mysqlclient[${PYTHON_USEDEP}] ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + )" +DEPEND=" + test? ( + gdbm? ( $(python_gen_impl_dep 'gdbm') ) + redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) + ) +" +BDEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" + +# TODO: maybe upstream would support skipping tests for which the +# dependencies are missing? +REQUIRED_USE=" + pyzord? ( || ( gdbm redis ) ) + test? ( gdbm redis ) +" +S="${WORKDIR}/${PN}-${COMMIT}" + +distutils_enable_sphinx "docs" + +python_test() { + pytest -vv tests/unit || die "Tests fail with ${EPYTHON}" +} + +src_install() { + distutils-r1_src_install + + if use pyzord; then + dodir /usr/sbin + mv "${D}"/usr/bin/pyzord* "${ED}/usr/sbin" \ + || die "failed to relocate pyzord" + else + rm "${D}"/usr/bin/pyzord* || die "failed to remove pyzord" + fi +}