python-serpent: split package

New package: python3-serpent-1.30.2

python2 support only up to version 1.28
This commit is contained in:
Pulux 2020-05-29 19:10:25 +02:00 committed by Piotr
parent c74e5d422d
commit 7e3fc5057c
3 changed files with 23 additions and 16 deletions

View file

@ -1,12 +1,11 @@
# Template file for 'python-serpent'
pkgname=python-serpent
version=1.28
revision=2
revision=3
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="serpent.py"
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python"
short_desc="Serialization library based on ast.literal_eval (Python2)"
maintainer="pulux <pulux@pf4sh.de>"
@ -18,14 +17,3 @@ checksum=f306336ca09aa38e526f3b03cab58eb7e45af09981267233167bcf3bfd6436ab
post_install() {
vlicense LICENSE
}
python3-serpent_package() {
archs=noarch
depends="python3"
pycompile="serpent.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-serpent

View file

@ -0,0 +1,20 @@
# Template file for 'python3-serpent'
pkgname=python3-serpent
version=1.30.2
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-attrs python3-pytz"
short_desc="Serialization library based on ast.literal_eval (Python3)"
maintainer="pulux <pulux@pf4sh.de>"
license="MIT"
homepage="https://pypi.org/project/serpent/"
distfiles="${PYPI_SITE}/s/serpent/serpent-${version}.tar.gz"
checksum=72753820246a7d8486e8b385353e3bbf769abfceec2e850fa527a288b084ff7a
post_install() {
vlicense LICENSE
}