void-packages/srcpkgs/python3-dkimpy/template
2019-12-23 18:04:56 +01:00

37 lines
1 KiB
Bash

# Template file for 'python3-dkimpy'
pkgname=python3-dkimpy
version=1.0.0
revision=2
archs=noarch
wrksrc="dkimpy-${version}"
build_style=python3-module
pycompile_module="dkim"
hostmakedepends="python3-setuptools"
depends="python3-dnspython python3-authres python3-pynacl python3-aiodns"
checkdepends="$depends python3-pytest"
short_desc="DKIM and ARC email signing and verification library"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="BSD-3-Clause"
homepage="https://launchpad.net/dkimpy"
distfiles="${PYPI_SITE}/d/dkimpy/dkimpy-${version}.tar.gz"
checksum=56f37736b5527082f2389bacd804e31e9f0118043e26eff74198d5d12ae3908b
replaces="python-dkimpy>=0"
provides="python-dkimpy-${version}_${revision}"
post_extract() {
vsed -i "s/^from tests/from .tests/" dkim/__main__.py
}
post_install() {
# This file is used for testing only
rm -f ${DESTDIR}/usr/lib/python3.?/site-packages/dkim/__main__.py
vlicense LICENSE
}
python-dkimpy_package() {
build_style=meta
archs=noarch
depends="python3-dkimpy"
short_desc+=" - transitional dummy package"
}