Date: Thursday, March 2, 2023 @ 21:04:13 Author: felixonmars Revision: 1407458
addpkg: python-big-o 0.10.2-1 Added: python-big-o/ python-big-o/repos/ python-big-o/trunk/ python-big-o/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: python-big-o/trunk/PKGBUILD =================================================================== --- python-big-o/trunk/PKGBUILD (rev 0) +++ python-big-o/trunk/PKGBUILD 2023-03-02 21:04:13 UTC (rev 1407458) @@ -0,0 +1,38 @@ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python-big-o +pkgver=0.10.2 +_commit=82b8bb318f93a8b7664d989ec069973291929823 +pkgrel=1 +pkgdesc="Empirical estimation of time complexity from execution time" +url="https://github.com/pberkes/big_O" +license=('BSD') +arch=('any') +depends=('python-numpy') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-pytest') +source=("git+https://github.com/pberkes/big_O.git#commit=$_commit") +sha512sums=('SKIP') + +prepare() { + cd big_O + # stablize tests on python 3.10+ + # TODO: doesn't apply + # git cherry-pick -n 81a3a5483fd7804d95ece8cc8f18a1f840ac7a7b +} + +build() { + cd big_O + python -m build -nw +} + +check() { + cd big_O + pytest +} + +package() { + cd big_O + python -m installer -d "$pkgdir" dist/*.whl + install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}
