blob: 301d2c6812ee242ab42d005e134edb0d2a76b1f4 (
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
|
# Maintainer: mark.blakeney at bullet-systems dot net
pkgname=pystand
pkgver=2.5
pkgrel=1
pkgdesc="Install Python Versions From The Python-Build-Standalone Project"
url="https://github.com/bulletmark/$pkgname"
license=(GPL-3.0-or-later)
arch=(any)
depends=("python>=3.8" "python-argcomplete" "python-packaging"
"python-platformdirs" "python-pygithub" "python-zstandard")
makedepends=(python-setuptools python-build python-installer
python-wheel python-setuptools-scm)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha1sums=('c1cdb68645ceb955470114e489a80f93fe1bc964')
build() {
cd "$srcdir/$pkgname-$pkgver"
# Have to suppress error while this packaging error exists:
# https://github.com/pypa/packaging-problems/issues/742
SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation 2>/dev/null
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|