1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-arrow/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

36 lines
1.1 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-arrow
pkgver=1.2.3
pkgrel=1
pkgdesc="Python3 library to create and manipulate dates, times, and timestamps"
url="https://arrow.readthedocs.io/"
arch="noarch"
license="Apache-2.0"
depends="py3-dateutil"
makedepends="py3-setuptools"
checkdepends="py3-tz py3-simplejson py3-mock"
source="https://files.pythonhosted.org/packages/source/a/arrow/arrow-$pkgver.tar.gz"
options="!check" # Requires unpackaged 'chai'
builddir="$srcdir/arrow-$pkgver"
replaces="py-arrow" # for backwards compatibility
provides="py-arrow=$pkgver-r$pkgrel" # for backwards compatibility
build() {
python3 setup.py build
}
check() {
# Requires unpackaged 'dateparser' module
rm -f tests/factory_tests.py
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
e90276f50bf8521570cc2cdbf011ff376e0d5bada0576bbfc76f6c63730c13f7eba1d978cc3a481e7c7356b0dce7c554f19cbf3ef03b280c5515be72d2c7d177 arrow-1.2.3.tar.gz
"