diff options
author | Carlos Giraldo <cgiraldo@gradiant.org> | 2019-02-07 09:23:16 +0100 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-23 17:31:10 +0000 |
commit | aa03737b1caf52b97622e3c5de349677c236ab3a (patch) | |
tree | 7ada68c79d9be624e5620d420703ecfaf2588090 /testing | |
parent | 19a0e0f612537dfe0fcfca0c1012ac957a33605c (diff) | |
download | aports-aa03737b1caf52b97622e3c5de349677c236ab3a.tar.bz2 aports-aa03737b1caf52b97622e3c5de349677c236ab3a.tar.xz |
testing/py-pandas: new aport
http://pandas.pydata.org/
Powerful data structures for data analysis, time series, and statistics
testing/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-pandas/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/testing/py-pandas/APKBUILD b/testing/py-pandas/APKBUILD new file mode 100644 index 0000000000..e06c5e3dd0 --- /dev/null +++ b/testing/py-pandas/APKBUILD @@ -0,0 +1,61 @@ +# Contributor: Carlos Giraldo <cgiraldo@gradiant.org> +# Maintainer: Carlos Giraldo <cgiraldo@gradiant.org> +pkgname=py-pandas +_pkgname=pandas +pkgver=0.24.1 +pkgrel=0 +pkgdesc="Powerful data structures for data analysis, time series, and statistics" +url="http://pandas.pydata.org/" +arch="all" +license="BSD-3-Clause" +depends="py-dateutil py-numpy py-tz" +makedepends="linux-headers py-numpy-dev python2-dev python3-dev py-setuptools" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + + +build() { + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" + + local python; for python in python2 python3; do + $python setup.py install --prefix=/usr --root="$pkgdir" + done + + install -D -m 644 LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc ${python#python}" + depends="$depends $python" + subpkgarch="all" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + depends="${depends//py-/py2-}" + depends="${depends//python/python2}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + depends="${depends//python/python3}" + _py python3 +} + +sha512sums="15f75308f4c437ad0096c3a3d768563b071b3d8e55e1850a5ee0f980f56a9d8d1b9fed9d7707ba43e80052e6c5fea313ac1ad2687935f0ab37a16a68bf64ae19 pandas-0.24.1.tar.gz" |