python3-sympy: update to 1.6.1, drop python2

This commit is contained in:
Daniel Eyßer 2020-03-09 19:25:57 +01:00 committed by Piotr
parent a9a556aed7
commit 972d725701
3 changed files with 21 additions and 44 deletions

View File

@ -1,43 +0,0 @@
# Template file for 'python-sympy'
pkgname=python-sympy
version=1.4
revision=2
archs=noarch
wrksrc="sympy-${version}"
build_style=python-module
pycompile_module="sympy isympy.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-mpmath"
short_desc="Computer algebra system for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://sympy.org/"
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
checksum=71a11e5686ae7ab6cb8feb5bd2651ef4482f8fd43a7c27e645a165e4353b23e1
alternatives="
sympy:isympy:/usr/bin/isympy2
sympy:isympy.1:/usr/share/man/man1/isympy2.1"
post_install() {
# create versioned man pages
mv ${DESTDIR}/usr/share/man/man1/isympy{,2}.1
vman doc/man/isympy.1 isympy3.1
vlicense LICENSE
}
python3-sympy_package() {
alternatives="
sympy:isympy:/usr/bin/isympy3
sympy:isympy.1:/usr/share/man/man1/isympy3.1"
archs=noarch
pycompile_module="sympy isympy.py"
depends="python3-setuptools python3-mpmath"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/isympy3
vmove usr/lib/python3*
vmove usr/share/man/man1/isympy3.1
vlicense LICENSE
}
}

View File

@ -1 +0,0 @@
python-sympy

View File

@ -0,0 +1,21 @@
# Template file for 'python3-sympy'
pkgname=python3-sympy
version=1.6.1
revision=1
archs=noarch
wrksrc="sympy-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-mpmath"
checkdepends="python3-mpmath"
short_desc="Computer algebra system for Python3"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://sympy.org/"
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
checksum=7386dba4f7e162e90766b5ea7cab5938c2fe3c620b310518c8ff504b283cb15b
post_install() {
vman doc/man/isympy.1
vlicense LICENSE
}