blob: 3605fdf5ae69ff318ec634feeac08814a28dce24 (
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
39
40
41
42
43
44
45
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-color-parser-py
_name=${pkgname#python-}
pkgver=0.1.6
pkgrel=1
pkgdesc="Python bindings for CSS color parser using PyO3. Parse and convert colors between different formats."
arch=('x86_64')
url="https://github.com/rusiaaman/color-parser-py"
license=('MIT')
depends=('python')
makedepends=(
'python-build'
'python-installer'
'python-maturin'
'python-wheel'
)
checkdepends=('python-pytest')
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('c50fda032977bd69a6f06cbbe692ad65483e63165e1a08aad3adeacbe681a9d9')
prepare() {
cd "$_name-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_name-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
python -m build --wheel --no-isolation
}
#check() {
# cd "$_name-$pkgver"
# pytest
#}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# LICENSE missing
# install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|