summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b927fd00d9a7d1a7ca9bb6ab2ab6f72817136eb (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
# Maintainer: SZanko szanko at protonmail dot com

_pkgname=data-science-types
pkgname=python-${_pkgname}
pkgver=0.2.22
pkgrel=2
pkgdesc="Mypy type stubs for numpy, pandas and matplotlib"
arch=('any')
url="https://github.com/predictive-analytics-lab/data-science-types"
license=('Apache')
depends=('python' 'mypy')
optdepends=(
	'python-numpy: for numpy support'
	'python-pandas: for pandas support'
	'python-matplotlib: for matplotlib support'
)
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('89b3c3f742303e1922488ebc02b9660d1db55d8f80f5c49f87977f1c1a4572c2')

build() {
	cd "${srcdir}/${_pkgname}-${pkgver}"
	python setup.py build
}

package() {
    cd "$srcdir/$_pkgname-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}