1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Crass00 <crass00 @ hotmail . com>
4 pkgname=python2-backports.functools_lru_cache
7 pkgdesc="Backport of functools.lru_cache from Python 3.3"
9 url="https://github.com/jaraco/backports.functools_lru_cache"
11 depends=('python2-backports')
12 makedepends=('python2-setuptools-scm')
13 checkdepends=('python2-pytest')
14 source=("https://pypi.io/packages/source/b/backports.functools_lru_cache/backports.functools_lru_cache-$pkgver.tar.gz")
15 sha512sums=('dab746440aeff8a411438f26f5c9a863929c41139c83bcfae51dcf29650c8e9d394b53a5f03b4e31ab7abd6a57249d719f155672e5585efb5f1851c8fe0a3de5')
18 cd backports.functools_lru_cache-$pkgver
19 # Style or coverage checks are not relevant for us
20 sed -i 's/--flake8 --black --cov//' pytest.ini
24 cd backports.functools_lru_cache-$pkgver
25 python2 setup.py build
29 cd backports.functools_lru_cache-$pkgver
34 cd backports.functools_lru_cache-$pkgver
35 python2 setup.py install --root="$pkgdir" --optimize=1
37 rm "$pkgdir"/usr/lib/python2.7/site-packages/backports/__init__.py*