archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-sqlitedict / trunk / PKGBUILD
blob6ae6e83cc035c96207d807e68582683e2bbb13f0
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-sqlitedict
4 pkgver=2.1.0
5 pkgrel=2
6 pkgdesc="Persistent dict in Python, backed up by sqlite3 and pickle, multithread-safe"
7 url="https://github.com/RaRe-Technologies/sqlitedict"
8 license=('Apache')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-nose')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/RaRe-Technologies/sqlitedict/archive/v$pkgver.tar.gz")
14 sha512sums=('93f4c539c53f92bc320ff654b08f2f24eea886ab28a31ff211094f744674e08bd79e2c3fc3e1489e663030e49bf2aa8cf70d7e030293f830cfb5db08b6bd2853')
16 build() {
17   cd sqlitedict-$pkgver
18   python setup.py build
21 check() {
22   cd sqlitedict-$pkgver
23   mkdir -p tests/db
24   nosetests3
27 package() {
28   cd sqlitedict-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1