blob: de63d2e8e7c5907b7c246409869b10bf6ec15b06 (
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
37
38
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Francois Boulogne <fboulogne at april dot org>
pkgname=python-trackpy
_pkg="${pkgname#python-}"
pkgver=0.6.1
pkgrel=1
pkgdesc="Python particle tracking tool"
url="https://github.com/soft-matter/trackpy"
arch=('any')
license=('BSD')
depends=('python-numpy' 'python-scipy' 'python-matplotlib' 'python-yaml')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
# checkdepends=('python-nose' 'python-pandas')
optdepends=("python-pims: simplifies image-reading"
"python-pytables: saving results in an HDF5 file"
"python-numba: for accelerated feature-finding and linking"
"python-pillow: for some display routines")
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkg::1}/$_pkg/$_pkg-$pkgver.tar.gz")
sha256sums=('0e14a6752f2aa2febe6116a139bb2d3ee16811512217744eca51b23bff14ee48')
build() {
cd "$_pkg-$pkgver"
python -m build --wheel --no-isolation
}
# check() {
# cd "$_pkg-$pkgver"
# nosetests3
# }
package() {
cd "$_pkg-$pkgver"
python -m installer --destdir "$pkgdir" dist/*.whl
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
install -Dvm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|