blob: 48733d8f5ddd1b2faab8f290c88606986b6c3889 (
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
|
# Maintainer: Maxime Poulin <code@max-p.me>
pkgname=python-hid-parser-git
pkgver=0.0.3.r25.g4b7944f
pkgrel=2
pkgdesc="Typed pure Python library to parse HID report descriptors"
url="https://github.com/usb-tools/python-hid-parser"
license=('MIT')
arch=('any')
provides=("python-hid-parser")
conflicts=("python-hid-parser")
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
'python-wheel'
'python-pytest'
'python-hypothesis'
)
source=(
"${pkgname}::git+https://github.com/usb-tools/python-hid-parser.git"
"fix-tests.patch"
)
sha512sums=('SKIP' 'SKIP')
pkgver() {
cd "${pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname}"
git apply ../fix-tests.patch
}
build() {
cd "${pkgname}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
check() {
cd "${pkgname}"
python -m pytest
}
|