mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
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
35 lines
905 B
Text
35 lines
905 B
Text
# Contributor: Anjandev Momi <anjan@momi.ca>
|
|
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
|
pkgname=py3-aniso8601
|
|
pkgver=9.0.1
|
|
pkgrel=1
|
|
pkgdesc="A library for parsing ISO 8601 strings"
|
|
url="https://bitbucket.org/nielsenb/aniso8601"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest py3-pytest-runner py3-dateutil py3-mock"
|
|
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/nielsenb/aniso8601/get/v$pkgver.tar.gz"
|
|
builddir="$srcdir/aniso8601-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
mv nielsenb-aniso8601-* aniso8601-$pkgver
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
82b3c943fe3be845ee375e232c6aafb20d4ede560831f594e91ad75e93fd6d12316ad7285c6ebb796587ace27f56c4b0c17059d9c2d1aa9525394802ea19d00c py3-aniso8601-9.0.1.tar.gz
|
|
"
|