New package: python-iso8601-0.1.13
This commit is contained in:
parent
c3494cab1e
commit
2ff1563f92
2 changed files with 36 additions and 0 deletions
35
srcpkgs/python-iso8601/template
Normal file
35
srcpkgs/python-iso8601/template
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Template file for 'python-iso8601'
|
||||||
|
pkgname=python-iso8601
|
||||||
|
version=0.1.13
|
||||||
|
revision=1
|
||||||
|
wrksrc="iso8601-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
depends="python"
|
||||||
|
checkdepends="python-pytest python3-pytest"
|
||||||
|
short_desc="ISO8601 formatted dated parser for Python2"
|
||||||
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/micktwomey/pyiso8601"
|
||||||
|
distfiles="${PYPI_SITE}/i/iso8601/iso8601-${version}.tar.gz"
|
||||||
|
checksum=f7dec22af52025d4526be94cc1303c7d8f5379b746a3f54a8c8446384392eeb1
|
||||||
|
replaces="python-iso-8601>=0"
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
python2 -m pytest iso8601
|
||||||
|
python3 -m pytest iso8601
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-iso8601_package() {
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
depends="python3"
|
||||||
|
replaces="python3-iso-8601>=0"
|
||||||
|
pkg_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
vmove ${py3_lib}
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-iso8601
Symbolic link
1
srcpkgs/python3-iso8601
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-iso8601
|
Loading…
Reference in a new issue