summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa3135da1897a2dd4576cfee924ea727efa4e6f0 (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
# Maintainer:  Alexander Bocken <alexander@bocken.org>

_name=neurokit2
pkgname=python-${_name,,}
pkgver=0.2.9
pkgrel=1
pkgdesc="The Python Toolbox for Neurophysiological Signal Processing."
arch=('any')
url="https://github.com/scientisst/BioSPPy"
license=('MIT')
depends=('python>=3.9'
	 'python-numpy'
	 'python-scipy'
	 'python-pandas'
	 'python-matplotlib'
	 'python-scikit-learn>=1.0.0'
)
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=(65e2274dddc41a652dedb5f9633dbd2accf306f615f6df3a6afa106a1d3e3ef3)

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"
    rm -rf "${pkgdir}/usr/lib/python${_python_version}/site-packages/tests"
}