void-packages/srcpkgs/python-astral/template

27 lines
816 B
Bash

# Template file for 'python-astral'
pkgname=python-astral
version=1.8
revision=1
noarch=yes
wrksrc="${pkgname#python-}-${version}"
build_style=python-module
pycompile_module="astral.py"
hostmakedepends="python python-setuptools python3 python3-setuptools"
depends="python-requests python-pytz"
short_desc="Calculations for the position of the sun and moon (Python2)"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/sffjunkie/astral"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=a952d5b52c1a4345940ef165a54e1751b0f1628f17d103a70f62e9f67070399c
python3-astral_package() {
noarch=yes
pycompile_module="astral.py"
depends="python3-requests python3-pytz"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
}
}