dev-python/pyClamd: Support python 3.11, EAPI 8, PEP517.

Signed-off-by: Hanno Böck <hanno@gentoo.org>
This commit is contained in:
Hanno Böck
2023-02-18 17:00:02 +01:00
parent 9efdc11e71
commit 74b9a5dfa4
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff -Naurp a/setup.py b/setup.py
--- a/setup.py 2017-08-28 00:05:52.000000000 +0200
+++ b/setup.py 2023-02-18 16:57:08.911936472 +0100
@@ -27,7 +27,6 @@ setup (name = 'pyClamd',
author_email = 'norman@xael.org',
keywords='python, clamav, antivirus, scanner, virus, libclamav',
url = 'http://xael.org/pages/pyclamd-en.html',
- bugtrack_url = 'https://bitbucket.org/xael/pyclamd',
include_dirs = ['/usr/local/include'],
description = 'pyClamd is a python interface to Clamd (Clamav daemon).',
long_description = 'pyClamd is a python interface to Clamd (Clamav daemon). By using pyClamd, you can add virus detection capabilities to your python software in an efficient and easy way. Instead of pyClamav which uses libclamav, pyClamd may be used by a closed source product.',

View File

@@ -0,0 +1,27 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9,10,11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
PATCHES=( "${FILESDIR}/${P}-remove-obsolete-bugtrack_url.diff" )
DESCRIPTION="python interface to Clamd (Clamav daemon)"
HOMEPAGE="https://xael.org/pages/pyclamd-en.html"
SRC_URI="mirror://pypi/p/${PN}/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
# Tests need clamd running and we cannot rely on that being
# true during build
RESTRICT="test"