Adding pyspf

This commit is contained in:
root
2020-01-01 17:56:36 +00:00
parent 31334171d5
commit 2f1f6082ed
7 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST pyspf-2.0.12t.tar.gz 67189 BLAKE2B 40ddecf6e9717da9e496c5852866259f28af11c5e9ef581ef1188b07896bce7abc3ba901063bfea2ec9f89d70e17275b0e2619f23f9dc334628ebb0af084b79c SHA512 1ad23b5dea4aa8edd03b3fd9fc675685bcb0e216474534563c55988df040abd4e2bbc8488bba80d26466877e8b2ec88cbadc2f67eb8c4bf6f26f975d8af81d8d
EBUILD pyspf-2.0.12.ebuild 781 BLAKE2B d52dc11342eab545f9b2b30c2d6c8b5e74777932cd0124aeaed3a351799a62939cf88622aaae1b5df0ede836c53bf0b67cbeee053abb7b55883dbb4bf84af800 SHA512 afa18c7ed08050e5e98de3966a5233e881ee190342406e47a6f7796c3b93992cb1fbbb4a9a28230bae6b880a1778f137a70ecf1ebfd628a920fb550db9d52024

View File

@ -0,0 +1,35 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} )
PYTHON_REQ_USE="ipv6?"
inherit distutils-r1
DESCRIPTION="Python implementation of the Sender Policy Framework (SPF) protocol"
HOMEPAGE="https://pypi.org/project/pyspf/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}t.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="ipv6 test"
RESTRICT="!test? ( test )"
# >=python-3.3 comes with the built-in ipaddress module
RDEPEND="dev-python/authres
>=dev-python/ipaddr-2.1.10
dev-python/pydns:3"
DEPEND="test? ( ${RDEPEND}
dev-python/pyyaml )"
REQUIRED_USE="test? ( ipv6 )"
python_test() {
pushd test &> /dev/null
"${PYTHON}" testspf.py || die
popd &> /dev/null
}