void-packages/srcpkgs/python-more-itertools/template

37 lines
931 B
Bash

# Template file for 'python-more-itertools'
pkgname=python-more-itertools
version=5.0.0
revision=1
noarch=yes
wrksrc="more-itertools-${version}"
build_style=python-module
pycompile_module="more_itertools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
checkdepends="python3-six"
short_desc="More Python2 routines for operating on itertables"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="MIT"
homepage="https://github.com/erikrose/more-itertools"
distfiles="https://github.com/erikrose/more-itertools/archive/${version}.tar.gz"
checksum=a2dd59cdb7287d738b3c745558f0812b69b519cda21726b180b09d9d68d8b461
do_check() {
python3 setup.py test
}
post_install() {
vlicense LICENSE
}
python3-more-itertools_package() {
noarch=yes
pycompile_module="more_itertools"
short_desc="${short_desc/Python2/Python3}"
depends="python3-six"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}