blob: c08b600248e710437ea7e53ef19d432cb71c9c6c (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Greyson Christoforo <grey@christoforo.net>
# Contributor: Alex Forencich <alex@alexforencich.com>
pkgname=python-pyvisa
pkgver=1.14.1
pkgrel=1
pkgdesc="A Python package with bindings to the 'Virtual Instrument Software Architecture' VISA library"
url="https://github.com/pyvisa/pyvisa"
license=('MIT')
arch=('any')
depends=('python-distribute' 'python-docutils' 'python-typing_extensions')
optdepends=('python-pyvisa-py: Pure Python backend')
makedepends=('git' 'python-setuptools-scm' 'python-pytest')
source=("git+$url.git#tag=$pkgver")
sha256sums=('SKIP')
prepare() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
}
build() {
cd pyvisa
python setup.py build
}
check(){
cd pyvisa
PYTHONPATH="$srcdir/pyvisa" python -m pytest --pyargs pyvisa --ignore pyvisa/testsuite/test_cmd_line_tools.py
}
package(){
cd pyvisa
python setup.py install --skip-build --optimize=1 --root="$pkgdir"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|