blob: c3652bfb772fa287d1f981e3d62a5ac4659de1a7 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-nixnet
_name=${pkgname#python-}
pkgver=1.0.0
pkgrel=1
pkgdesc="Communicate over CAN or LIN via NI-XNET hardware with Python"
provides=(${pkgname})
conflicts=(${pkgname})
arch=('any')
url="https://github.com/ni/nixnet-python"
_pydeps=(
six
)
depends=('python'
"${_pydeps[@]/#/python-}")
makedepends=(
git
'python-poetry-core'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
license=('MIT')
source=("${_name}::git+${url}.git#tag=v$pkgver")
sha256sums=('7a5c95252d125ae09b2a14ef6fe285c4ec3fcabdf5b97a482cb57cbf002574ea')
prepare() {
git -C "${srcdir}/${_name}" clean -dfx
}
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
|