archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-cachetools / repos / community-any / PKGBUILD
blob1340fb73325ad08a0fc703d0f08a0789c66ab819
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-cachetools
4 pkgver=5.3.0
5 pkgrel=2
6 pkgdesc="Extensible memoizing collections and decorators"
7 url="https://github.com/tkem/cachetools"
8 license=('MIT')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/tkem/cachetools/archive/v$pkgver.tar.gz")
14 sha512sums=('6b600f48f28b98c5480a1952317c2f27c132cf609c6651e66165351f23fba6c028cdbf1bba0f2159a622d8cd3db9bfa09dde7e08e15929336e82358f61e495bc')
16 build() {
17   cd "$srcdir"/cachetools-$pkgver
18   python setup.py build
21 check() {
22   cd "$srcdir"/cachetools-$pkgver
23   python setup.py pytest
26 package() {
27   cd cachetools-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE