mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
this doesn't really "optimise" the python or do much to improve performance. it's identical to running python with -O or setting PYTHONOPTIMISE= in the environment. doing it here just doubles the disk space for the pre-cached files generated by python on startup with optimisations
30 lines
762 B
Text
30 lines
762 B
Text
# Contributor: Thiago Perrotta <tbperrotta@gmail.com>
|
|
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
|
pkgname=py3-minidb
|
|
pkgver=2.0.7
|
|
pkgrel=1
|
|
pkgdesc="Simple SQLite3 store for Python objects"
|
|
url="https://thp.io/2010/minidb"
|
|
arch="noarch"
|
|
license="ISC"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://files.pythonhosted.org/packages/source/m/minidb/minidb-$pkgver.tar.gz"
|
|
builddir="$srcdir/minidb-$pkgver/"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH=. pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --skip-build
|
|
}
|
|
|
|
sha512sums="
|
|
dc04d2d51fdc4ecf30e234cb25e17bf0cd5c320dfca6bdd306b61eced89fe8f1fb5df93111ec0c04f1b258ecde467203a968e61b913feee87301dec7e93d9412 minidb-2.0.7.tar.gz
|
|
"
|