blob: 6fc686d5f1f70ebdaa0fde4e73c5a8685f07d15c (
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
|
# Maintainer: Alexander Bocken <alexander@bocken.org>
_name=biosppy
pkgname=python-${_name,,}
pkgver=2.2.2
pkgrel=2
pkgdesc="A toolbox for biosignal processing written in Python."
arch=('any')
url="https://github.com/scientisst/BioSPPy"
license=('BSD-3-Clause')
depends=('python>=3.5.2'
'python-bidict'
'python-h5py'
'python-matplotlib'
'python-numpy'
'python-scikit-learn'
'python-scipy'
'python-shortuuid'
'python-six'
'python-joblib'
'python-opencv'
)
makedepends=('python-installer' 'python-wheel')
_whl="${_name//-/_}-$pkgver-py2.py3-none-any.whl"
source=("https://files.pythonhosted.org/packages/py2.py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py2.py3-none-any.whl")
sha256sums=(62a8a1db2aaf21b3381845e947b65c093708da7a99cd5ddda0cb38a9c42f66e0)
noextract=("$_whl")
package() {
_python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')"
python -m installer --destdir="$pkgdir" "$_whl"
_license_path="${pkgdir}/usr/lib/python${_python_version}/site-packages/${_name}-${pkgver}.dist-info/LICENSE"
install -Dm644 "${_license_path}" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|