26 lines
944 B
Bash
26 lines
944 B
Bash
# Template file for 'python-backports.functools_lru_cache'
|
|
pkgname=python-backports.functools_lru_cache
|
|
version=1.5
|
|
revision=2
|
|
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=9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e "/setuptools_scm/d" \
|
|
-e "s/use_scm_version=True,/version=\"${version}\",/"
|
|
}
|
|
post_install() {
|
|
# namespace provided by python-backports package
|
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py
|
|
}
|