summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6376f4ac2994a376e2446ae8252fc055b9b7c436 (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
# Maintainer: Rudy Matela <rudy@matela.com.br>
# Contributor: Rudy Matela <rudy@matela.com.br>

pkgname=python-slicer
pkgver=0.0.8
pkgrel=1
pkgdesc='Wraps tensor-like objects and provides a uniform slicing interface via __getitem__'
arch=(any)
url='https://github.com/interpretml/slicer'
license=(BSD)
depends=(
  python
  python-numpy
  python-pandas
  python-pytest
  python-scipy
)
makedepends=(
  python-setuptools
  python-wheel
)
optdepends=(
  python-pytorch
)
_archive="${pkgname#python-}-$pkgver"
source=("${url}/archive/v${pkgver}/${_archive}.tar.gz")
sha256sums=('518348c924ad2545f086cf0a112694aebcaffa759038b2e2a1ef4ca0abb5063b')

package() {
	cd $_archive
	python setup.py install --root="$pkgdir" --optimize=1
	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}