archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python2-backports.functools_lru_cache / trunk / PKGBUILD
blobb35184da5defc9f36bbd944524d805ac03f24695
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Crass00 <crass00 @ hotmail . com>
4 pkgname=python2-backports.functools_lru_cache
5 pkgver=1.6.4
6 pkgrel=1
7 pkgdesc="Backport of functools.lru_cache from Python 3.3"
8 arch=('any')
9 url="https://github.com/jaraco/backports.functools_lru_cache"
10 license=('MIT')
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')
17 prepare() {
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
23 build() {
24   cd backports.functools_lru_cache-$pkgver
25   python2 setup.py build
28 check() {
29   cd backports.functools_lru_cache-$pkgver
30   python2 -m pytest
33 package() {
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*