1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-about-time/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

34 lines
1.1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-about-time
_commit=bcabddd4c864d58b272a1d69b321ca9184ba45ac
pkgver=4.2.1
pkgrel=0
pkgdesc="Easily measure timing and throughput of code blocks, with beautiful human friendly representations"
url="https://github.com/rsalmei/about-time"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="python3-dev py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/rsalmei/about-time/archive/$_commit/about-time-$_commit.tar.gz
fix-license.patch"
builddir="$srcdir/about-time-$_commit"
build() {
python3 setup.py build
}
check() {
python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
7651fbe2a98f6458aab6e4dd82ec4676c8d3daedfa5145d24799c3453b9fe62beb896c19900291439849fbb2b896cbd327d359cf07a0140df4e6b5904561abb4 py3-about-time-4.2.1.tar.gz
fff60502c91559110441b7163f42f40696317b68a58851f372f963b4d72f87e1293db5ee2b97a21efb952e6f168887979a3b96363e2c7c6d22fd1885095aba9e fix-license.patch
"