blob: 16052f20de53d4841cb1818dc907a8db3aa51fc9 (
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.1
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=('4023c0b48520c5353929c538bfb50ee4f3668bf424ca948e9b71d57de5a76ad4')
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"
}
|