blob: 1e4d136fab616ee33f12bbbcceeffaf2bc9c5fca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Wüstengecko <1579756+Wuestengecko@users.noreply.github.com>
pkgname=python-datauri
_name=${pkgname}
pkgver=2.2.0
pkgrel=1
pkgdesc="A li'l class for data URI manipulation in Python"
arch=(any)
url="https://github.com/fcurella/python-datauri"
license=('Unlicense')
depends=(python python-pydantic-core python-typing_extensions)
makedepends=(python-build python-installer python-setuptools python-wheel)
checkdepends=(python-pydantic python-pytest)
options=(!strip)
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('a7c8033a432fe7ebed0030c734727267ddf524cae27aee222b6c9a717ed9fa60')
build() {
cd "$_name-$pkgver"
PYTHONHASHSEED=0 python -m build --wheel --no-isolation
}
check() {
cd "$_name-$pkgver"
PYTHONPATH="$PWD" pytest
}
package() {
cd "$_name-$pkgver"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
}
|