blob: 9b88e786a5da78be669f9b86626aa4a1d96090b9 (
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: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Contributor: Grey Christoforo <first name [at] last name [dot] net>
pkgname=python-pyvisa-py
pkgver=0.7.0
pkgrel=1
pkgdesc="A pure python backend for PyVISA"
url="https://github.com/pyvisa/pyvisa-py"
arch=('any')
license=('MIT')
depends=('python-pyvisa')
makedepends=('python-wheel' 'python-setuptools-scm' 'python-pytest')
optdepends=('linux-gpib: gpib instrument support'
            'python-pyserial: interface with serial instruments'
            'python-pyusb: interface with USB instruments'
            'python-gpib-ctypes: interface with GPIB instruments'
            'python-psutil: discover TCPIP devices across multiple interfaces')
conflicts=($pkgname-git)
source=("git+$url.git")
sha256sums=('SKIP')
prepare() {
  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  # Switch tag version
  cd pyvisa-py
  git checkout tags/${pkgver}
}
build() {
  cd pyvisa-py
  python setup.py build
}
check() {
  cd pyvisa-py
  python -m pytest --pyargs pyvisa_py
}
package() {
  cd pyvisa-py
  python setup.py install --skip-build --prefix=/usr --root="$pkgdir/" --optimize=1
}
  |