# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-tinydb _pkgname=tinydb pkgver=4.8.2 _pyver=3.14 pkgrel=2 pkgdesc='Lightweight document oriented database optimized for your happiness.' arch=('any') url='https://pypi.org/project/tinydb/#files' license=('MIT') depends=('python' 'python-pytest-cov' 'python-yaml') makedepends=('python-build' 'python-pip') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('d54fea5899c333d44d189e67c0ed63737f8f5c4cce46c20a260ea73f546e03807610a4d65baad2887715032ce5d81f3fa3a5599d673ebb4e037b34b8e1f26e4a') build() { cd "$_pkgname-$pkgver" python -m build --wheel --outdir="$startdir/dist" } package() { cd "$_pkgname-$pkgver" pip install \ --verbose \ --disable-pip-version-check \ --no-warn-script-location \ --ignore-installed \ --no-compile \ --no-deps \ --root="$pkgdir" \ --prefix=/usr \ --no-index \ --find-links="file://$startdir/dist" \ $_pkgname rm -rf "$pkgdir/usr/lib/python$_pyver/site-packages/tests" }