void-packages/srcpkgs/python-smmap/template
2019-12-23 18:05:39 +01:00

36 lines
846 B
Bash

# Template file for 'python-smmap'
pkgname=python-smmap
version=2.0.5
revision=2
archs=noarch
wrksrc="smmap-${version}"
build_style=python-module
pycompile_module="smmap"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python3-nose"
short_desc="Sliding memory map manager (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
license="BSD-3-Clause"
homepage="https://github.com/gitpython-developers/smmap"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=e348efaf6ce81b8c923fb03d5b09f857c87605ff7f1d00b146d4aff9cf1fa776
do_check() {
nosetests3 -v
}
post_install() {
vlicense LICENSE
}
python3-smmap_package() {
archs=noarch
pycompile_module="smmap"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}