blob: 7ba7df88ce42ed76d51d60932abaec8a885d9496 (
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
|
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=python-pluginmgr
pkgver=1.2.1
pkgrel=1
pkgdesc='Lightweight Python plugin system supporting config inheritance'
arch=('any')
url="https://github.com/20c/pluginmgr"
license=('Apache')
depends=('python-munge' 'python-importlib-metadata')
makedepends=('python-build' 'python-installer' 'python-hatchling')
checkdepends=('python-pytest' 'python-pytest-xdist' 'python-pytest-forked')
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('1f2e3428619d379346389e5d568f08fcc22abe3409eea57ef4fa2472c2e8dc14')
build() {
cd "pluginmgr-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "pluginmgr-$pkgver"
PYTHONPATH=./src pytest -x --disable-warnings
}
package() {
cd "pluginmgr-$pkgver"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
}
|