blob: ff31e13d1cb6105d012ff184e1ed2c6141ae13c0 (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
_name=varname
pkgname=python-varname
pkgver=0.13.5
pkgrel=2
pkgdesc="A Python library to retrieve variable names from functions or classes"
arch=('any')
url="https://github.com/pwwang/${pkgname}"
license=('MIT')
depends=('python' 'python-executing')
optdepends=('python-asttokens' 'python-pure-eval')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-poetry')
source=("$pkgname-$pkgver.tar.gz"::${url}/archive/refs/tags/${pkgver}.tar.gz)
sha512sums=('dec5261a1a08161dab5d3fd9b65eb5dd1dd65d2897109024552efce55e01b48800a9d969673f39d17070265d07e25eca3c3cb9fd972ae5a5bef33722a77dade9')
build() {
cd "${pkgname}-${pkgver}"
## skip dependency check because of pinned deps
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|