summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a43056613ca57823243f36194ced4472cf4e886c (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
# Maintainer: Mahdi Sarikhani <mahdisarikhani@outlook.com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Quan Guo <guotsuan@gmail.com>

pkgname=python-astroml
_name=astroML
pkgver=1.0.2.post1
pkgrel=1
pkgdesc="Machine learning, statistics, and data mining for astronomy and astrophysics"
arch=('any')
url="https://github.com/astroML/astroML"
license=('BSD')
depends=('python'
         'python-astropy'
         'python-matplotlib'
         'python-numpy'
         'python-scikit-learn'
         'python-scipy')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('45188a7a88a36ca3ec5a3aa04e5fa227f42d17415a6e168fb523375c1aabe291')

build() {
    cd "${_name}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${_name}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}