mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-01 00:42:03 +01: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
33 lines
993 B
Plaintext
33 lines
993 B
Plaintext
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-snaptime
|
|
_pkgorig=snaptime
|
|
_commit=cc8b7d4489ee8104b717ed461dd21aee806ae322
|
|
pkgver=0.2.4
|
|
pkgrel=1
|
|
pkgdesc="Python package to modify timestamps"
|
|
url="https://github.com/zartstrom/snaptime"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-tz py3-dateutil"
|
|
checkdepends="python3-dev py3-pytest"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/zartstrom/$_pkgorig/archive/$_commit/$_pkgorig-$_commit.tar.gz"
|
|
builddir="$srcdir/$_pkgorig-$_commit"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest -k 'not test_bad_weekday and not test_parse_error and not test_unit_error'
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
744c9ea912eb0841a4d3e428b4ce4a58f380ee42b7c85c1b943bbe157d67139c02457526b8774e85ab60dea93ed6dcd131a217b4b1dd2828c3836ffc43056287 py3-snaptime-0.2.4.tar.gz
|
|
"
|