new blfs: dev-python/setuptools-scm-8.3.1
This commit is contained in:
29
dev-python/setuptools-scm-8.3.1.PKGBUILD
Normal file
29
dev-python/setuptools-scm-8.3.1.PKGBUILD
Normal file
@@ -0,0 +1,29 @@
|
||||
pkgname=setuptools-scm
|
||||
pkgver=8.3.1
|
||||
pkgdesc='Handles managing your python package versions in scm metadata'
|
||||
arch=(any)
|
||||
homepage=https://github.com/pypa/setuptools_scm
|
||||
license=(MIT)
|
||||
sources=("${pkgname/-/_}-${pkgver}.tar.gz")
|
||||
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
|
||||
md5sums=("35e09656d091a94b27f9c50b383b32c5")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
# test need too much deps
|
||||
|
||||
src_install() {
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||
ln -s "$site_packages"/$pkgname-$pkgver.dist-info/licenses/LICENSE \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user