python3-dkimpy: update to 1.0.0, drop python 2

This commit is contained in:
Doan Tran Cong Danh 2019-12-14 10:42:03 +07:00 committed by Juan RP
parent 0a2f628b96
commit a6d0ae37d8
4 changed files with 37 additions and 49 deletions

1
srcpkgs/python-dkimpy Symbolic link
View file

@ -0,0 +1 @@
python3-dkimpy

View file

@ -1,48 +0,0 @@
# Template file for 'python-dkimpy'
pkgname=python-dkimpy
version=0.9.2
revision=1
archs=noarch
wrksrc="dkimpy-${version}"
build_style=python-module
pycompile_module="dkim"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-dnspython"
short_desc="DKIM and ARC email signing and verification library (Python2)"
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=83d5ddc1b83304dbccba1dc7b9e0ee37bec4269bb9ad5779480991525c3811d6
alternatives="
dkimpy:arcsign:/usr/bin/arcsign2
dkimpy:arcverify:/usr/bin/arcverify2
dkimpy:dkimsign:/usr/bin/dkimsign2
dkimpy:dkimverify:/usr/bin/dkimverify2
dkimpy:dknewkey:/usr/bin/dknewkey2"
pre_configure() {
sed -n '3,22p' setup.py > LICENSE
}
post_install() {
vlicense LICENSE
}
python3-dkimpy_package() {
archs=noarch
pycompile_module="dkim"
depends="python3-dnspython"
short_desc="${short_desc/Python2/Python3}"
alternatives="
dkimpy:arcsign:/usr/bin/arcsign3
dkimpy:arcverify:/usr/bin/arcverify3
dkimpy:dkimsign:/usr/bin/dkimsign3
dkimpy:dkimverify:/usr/bin/dkimverify3
dkimpy:dknewkey:/usr/bin/dknewkey3"
pkg_install() {
vmove usr/lib/python3*
vmove usr/bin/*3
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-dkimpy

View file

@ -0,0 +1,36 @@
# Template file for 'python3-dkimpy'
pkgname=python3-dkimpy
version=1.0.0
revision=1
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"
}