From aa03737b1caf52b97622e3c5de349677c236ab3a Mon Sep 17 00:00:00 2001 From: Carlos Giraldo Date: Thu, 7 Feb 2019 09:23:16 +0100 Subject: testing/py-pandas: new aport http://pandas.pydata.org/ Powerful data structures for data analysis, time series, and statistics testing/ --- testing/py-pandas/APKBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 testing/py-pandas/APKBUILD (limited to 'testing') 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 +# Maintainer: Carlos Giraldo +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" -- cgit v1.2.3