blob: 9123d5ddd4fb76c5dad27b06d763826698b6f0aa (
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
33
34
35
36
37
38
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Daniel Moch <daniel@danielmoch.com>
pkgname=python-halcy-blurhash
_pkg=blurhash
pkgver=1.1.4
pkgrel=2
pkgdesc='Pure Python implementation of the blurhash algorithm'
arch=('any')
url="https://github.com/halcy/blurhash-python"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
# checkdepends=('python-pytest' 'python-pillow' 'python-numpy')
provides=('python-blurhash')
conflicts=('python-blurhash')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/b/$_pkg/$_pkg-$pkgver.tar.gz"
'LICENSE')
sha256sums=('da56b163e5a816e4ad07172f5639287698e09d7f3dc38d18d9726d9c1dbc4cee'
'b8eac7c273126370c3d04ecc12ea38f998ef93aa72943feb2204b2b68c330355')
build() {
cd "$_pkg-$pkgver"
python -m build --wheel --no-isolation
}
# check() {
# cd "$_pkg-$pkgver"
# pytest
# }
package() {
cd "$_pkg-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dvm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
# vim: set sts=2 sw=2 ft=PKGBUILD et:
|