blob: e97e9c5b8eb0a9c21285496e7dae1ee2ccc2ccf9 (
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
53
|
# Maintainer: Gergely Meszaros <maetveis at gmail dot com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Payson Wallach <payson@paysonwallach.com>
# Contribute at https://gitlab.com/Maetveis/aur-packages
pkgname=python-persist-queue
_pkg="${pkgname#python-}"
pkgver=0.8.1
pkgrel=1
pkgdesc='Thread-safe disk-based persistent queue'
arch=('any')
url="https://github.com/peter-wangxu/persist-queue"
license=('BSD')
depends=('python')
optdepends=('python-msgpack: MessagePack serialization support'
'python-cbor2: CBOR serialization support')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
# checkdepends=(
# 'python-dbutils'
# 'python-eventlet'
# 'python-nose2'
# 'python-msgpack'
# 'python-mock'
# 'python-pymysql')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('09bb473f0c0a3a333ef5225f19f638c58f912a3e947cba3317451f137e8a8143')
prepare() {
cd "$_pkg-$pkgver"
sed -i "/packages=find/c\packages=find_packages(exclude=('*tests*',))," setup.py
}
build() {
cd "$_pkg-$pkgver"
python -m build --wheel --no-isolation
}
# check() {
# cd "persist-queue-$pkgver"
# nose2
# }
package() {
cd "$_pkg-$pkgver"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -d "$pkgdir/usr/share/licenses/$pkgname/"
ln -s \
"$_site/${_pkg/-/_}-$pkgver.dist-info/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/"
}
|