void-packages/srcpkgs/python-backports.functools_.../template

23 lines
816 B
Bash

# Template file for 'python-backports.functools_lru_cache'
pkgname=python-backports.functools_lru_cache
version=1.3
revision=1
noarch=yes
wrksrc="backports.functools_lru_cache-${version}"
build_style=python2-module
pycompile_module="backports/functools_lru_cache.py"
hostmakedepends="python-setuptools"
depends="python-backports"
short_desc="Backport of functools.lru_cache from Python 3.3"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/jaraco/backports.functools_lru_cache"
license="PSF"
distfiles="${PYPI_SITE}/b/backports.functools_lru_cache/backports.functools_lru_cache-${version}.tar.gz"
checksum=444a21bcec4ae177da554321f81a78dc879eaa8f6ea9920cb904830585d31e95
pre_build() {
sed -i setup.py \
-e "/setuptools_scm/d" \
-e "s/use_scm_version=True,/version=\"${version}\",/"
}