blob: 6ceb9e882fdb90be7dbe3c44b68dbac887386fb4 (
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
|
# Maintainer: Maks Verver <maksverver@geocities.com>
pkgname=python-pgzip
pkgver=0.3.5
pkgrel=1
pkgdesc='Multi-threaded gzip implementation for Python'
arch=('any')
url='https://github.com/pgzip/pgzip'
license=('MIT')
source=("pgzip-$pkgver.tar.gz::https://github.com/pgzip/pgzip/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('a47d269fe68d35f3db01e5eb3ece4727eee3404806d9413550c53fcceff06c2e00911569550d272bb0773865bbc3d10c87e7a7b9439e34d4be7a2468154ba787')
makedepends=(
'python-build'
'python-installer'
'python-pytest'
'python-setuptools'
'python-wheel'
)
build() {
cd pgzip-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd pgzip-$pkgver
PYTHONPATH=. pytest
}
package() {
cd pgzip-$pkgver
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|