summaryrefslogtreecommitdiff
path: root/testing/py3-ajsonrpc/APKBUILD
blob: 2734f2da83b775509a341c7b268b98ca1e25d303 (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
# Contributor: Marten Ringwelski <git+alpine@maringuu.de>
# Maintainer: Marten Ringwelski <git+alpine@maringuu.de>
pkgname=py3-ajsonrpc
pkgver=1.2.0
pkgrel=1
pkgdesc="Lightweight JSON-RPC 2.0 protocol implementation and asynchronous server powered by asyncio"
url="https://github.com/pavlov99/ajsonrpc"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/pavlov99/ajsonrpc/archive/refs/tags/$pkgver.tar.gz
	no-test-install.patch
	"
builddir="$srcdir/ajsonrpc-$pkgver"

build() {
	# See ajsonrpcs github actions
	echo "__version__ = \"$pkgver\"" >> ajsonrpc/__init__.py
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
af307f13c4e3a2b3004dc03629a3d0216c9c72014d290e66ad73b60925548fb3c1cf18d6b7ef6b270fca98b3b8efe9cc2741796f9b6f360267ab2df0a7eee9d3  py3-ajsonrpc-1.2.0.tar.gz
414a0b53b5c6eb1a5b0927d818c9223d76c75bc5f00f30a88b26166b50f47784c8e30e0605bf48a277ff25b914e25d4fa15bfe1083610778b2c2db39eb0be0eb  no-test-install.patch
"