summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8fbb41f22b81e47772e3e24d761a1bda05bb141d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: Brett Cornwall <ainola@archlinux.org>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Matteo Triggiani <davvore33@gmail.com>

pkgname=python-pickledb
pkgver=1.6
pkgrel=2
pkgdesc='A Lightweight, simple and fast Python key-value store with asynchronous support'
url="https://patx.github.io/pickledb/"
arch=('any')
license=('BSD-3-Clause')
depends=(
  'python'
  'python-aiofiles'
  'python-orjson'
)
makedepends=(
  'git'
  'python-build'
  'python-flit-core'
  'python-installer'
  'python-wheel'
)
checkdepends=(
  'python-aiosqlite'
  'python-pytest'
  'python-pytest-asyncio'
)
optdepends=("python-aiosqlite: Alternative backend to orjson")
source=("git+https://github.com/patx/pickledb.git#tag=v$pkgver")
sha256sums=('35404eb52818f11e601573d6562678612a912a11f608423c392d80a7804dcc3d')

build() {
    cd "pickledb"
    python -m build --wheel --no-isolation
}

check() {
    cd "pickledb"
    pytest -v
}

package() {
    cd "pickledb"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}