23 lines
784 B
Bash
23 lines
784 B
Bash
# Template file for 'python3-isodate'
|
|
pkgname=python3-isodate
|
|
version=0.6.1
|
|
revision=2
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3-six"
|
|
checkdepends="${depends}"
|
|
short_desc="ISO 8601 date/time/duration parser and formatter (Python3)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/gweis/isodate"
|
|
distfiles="${PYPI_SITE}/i/isodate/isodate-${version}.tar.gz"
|
|
checksum=48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9
|
|
|
|
post_install() {
|
|
# licence is in a separate file at HEAD of master, but not released
|
|
sed -n '/Copyright/,/CONTRACT/p' src/isodate/__init__.py >LICENSE
|
|
vlicense LICENSE
|
|
# remove tests from installed package
|
|
rm -r ${DESTDIR}/${py3_sitelib}/${pkgname#*-}/tests
|
|
}
|