summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 104b9a7b041dfb1c202bde3b04ec2d5e896d465e (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.10
pkgrel=2
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=(43b859595100fb862c3bacc6b6b027fe4aef7aff3d35f7e23fb79fd116fbe936)

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"
}