summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a7dc04e04e4d0aed65501d486b40d9bf0fa8695 (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: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-fastkde
_name=${pkgname#python-}
pkgver=1.0.26
pkgrel=2
pkgdesc="Fast kernel density estimation"
arch=(any)
url="https://github.com/LBL-EESA/fastkde"
license=(LBNL)
groups=()
depends=(python-numpy python-scipy cython)
makedepends=(python-build python-installer)
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('5dbfd7552040e669fc20ada349f5e9bf023a380851cbe10d30146de845a63693')
build() {
    cd "$srcdir/$_name-$pkgver"
    sed -i 's/"oldest-supported-numpy.*"/"numpy"/' pyproject.toml
    #sed -i 's:nspread/2:"nspread//2:' fastkde/nufft.pyx
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}