blob: dce0758dfe601d95b7fbef8cc976a7c7caf2d3b9 (
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
36
|
#!/bin/bash
# Maintainer: Dringsim <dringsim@qq.com>
# Contributor: PumpkinCheshire <me at pumpkincheshire dot top>
_name=mapclassify
pkgname=python-mapclassify
pkgver=2.6.1
pkgrel=2
pkgdesc='Classification schemes for choropleth mapping.'
url='https://github.com/pysal/mapclassify'
arch=('any')
license=('BSD')
depends=(
'python-scipy'
'python-numpy'
'python-scikit-learn'
'python-pandas'
'python-networkx'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('4441798d55a051e75206bf46dccfc8a8f8323aac8596d19961d11660c98677ca')
build() {
cd "$_name-$pkgver" || exit
python -m build --wheel --no-isolation
# export PYTHONHASHSEED=0
# python setup.py build
}
package() {
cd "$_name-$pkgver" || exit
python -m installer --destdir="$pkgdir" dist/*.whl
# python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 'LICENSE.txt' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|