new blfs: dev-python/pyproject-hooks-1.2.0
This commit is contained in:
23
dev-python/pyproject-hooks-1.2.0.PKGBUILD
Normal file
23
dev-python/pyproject-hooks-1.2.0.PKGBUILD
Normal file
@@ -0,0 +1,23 @@
|
||||
pkgname=pyproject-hooks
|
||||
pkgver=1.2.0
|
||||
pkgdesc="A low-level library for calling build-backends in pyproject.toml-based project"
|
||||
arch=(any)
|
||||
homepage="https://github.com/pypa/pyproject-hooks"
|
||||
license=(MIT)
|
||||
sources=("${pkgname/-/_}-${pkgver}.tar.gz")
|
||||
urls=("https://files.pythonhosted.org/packages/source/p/${pkgname}/${sources[0]}")
|
||||
md5sums=("ed3dd1b984339e83e35f676d7169c192")
|
||||
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --root ${pkgdir} --root-user-action=ignore --find-links dist ${pkgname}
|
||||
}
|
||||
Reference in New Issue
Block a user