blob: fae9b756d370c15a460d4a968494b1f32f49e37d (
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
|
# Maintainer: Philipp A. <flying-sheep@web.de>
_name=connection_pool
pkgname=python-$_name
pkgver=0.0.3
pkgrel=3
pkgdesc='Thread-safe connection pool for Python'
arch=(any)
url='https://github.com/zhouyl/ConnectionPool'
license=(MIT)
depends=(python)
makedepends=(python-build python-installer python-wheel python-setuptools)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"https://raw.github.com/zhouyl/ConnectionPool/refs/tags/$pkgver/LICENSE")
sha256sums=('bf429e7aef65921c69b4ed48f3d48d3eac1383b05d2df91884705842d974d0dc'
'1747f447ded12fb9ce3394e4fe52fba99b27329712a252829b1c6d52f7801bd4')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|