blob: 655dd4faae284966205c197d5b24e9a9bccd8165 (
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
48
49
50
51
52
|
# 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.3.2
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-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=(
'python-pytest'
)
source=("git+https://github.com/patx/pickledb.git#tag=v$pkgver"
"fix_test_invalid_file_loading.patch")
sha256sums=('526cb7976899b641bb6500faf14978cf9c87a7955e7e7828dfd3e64d2abded8c'
'24b9ca38bfa9d5e5f732d62c125cf45888c1883a0c0a32f4bfc2fa7c76197ccb')
prepare () {
cd "pickledb"
# https://github.com/patx/pickledb/issues/102
patch -p1 < ../fix_test_invalid_file_loading.patch
}
build() {
cd "pickledb"
python -m build --wheel --no-isolation
}
check() {
cd "pickledb"
pytest tests.py -v
}
package() {
cd "pickledb"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|