void-packages/srcpkgs/python-isodate/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

32 lines
878 B
Bash

# Template file for 'python-isodate'
pkgname=python-isodate
version=0.6.0
revision=1
noarch=yes
wrksrc="isodate-${version}"
build_style=python-module
pycompile_module="isodate"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="ISO 8601 date/time/duration parser and formatter (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://github.com/gweis/isodate"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/i/isodate/isodate-${version}.tar.gz"
checksum=2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8
post_install() {
sed -n '/Copyright/,/CONTRACT/p' src/isodate/__init__.py >LICENSE
vlicense LICENSE
}
python3-isodate_package() {
noarch=yes
depends="python3-six"
pycompile_module="isodate"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}