void-packages/srcpkgs/python3-marisa-trie/template

30 lines
906 B
Bash

# Template file for 'python3-marisa-trie'
pkgname=python3-marisa-trie
version=0.7.5
revision=9
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel"
depends="python3"
short_desc="Static memory-efficient Trie-like structures (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytries/marisa-trie"
changelog="https://raw.githubusercontent.com/pytries/marisa-trie/master/CHANGES.rst"
distfiles="${PYPI_SITE}/m/marisa-trie/marisa-trie-${version}.tar.gz"
checksum=c73bc25d868e8c4ea7aa7f1e19892db07bba2463351269b05340ccfa06eb2baf
post_patch() {
# Package does not *need* pytest-runner to build, and Void doesn't have it
vsed -e "/setup_requires/s/['\"]pytest-runner['\"],*//" -i setup.py
}
pre_build() {
rm -f src/marisa_trie.cpp
cython src/*.pyx src/*.pxd --cplus
}
post_install() {
vlicense LICENSE
}