new blfs: dev-python/hatchling-1.27.0
This commit is contained in:
25
dev-python/hatchling-1.27.0.PKGBUILD
Normal file
25
dev-python/hatchling-1.27.0.PKGBUILD
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
pkgname=hatchling
|
||||||
|
pkgver=1.27.0
|
||||||
|
pkgdesc="Extensible, standards compliant build backend used by Hatch"
|
||||||
|
arch=('any')
|
||||||
|
homepage="https://github.com/pypa/hatch/tree/master/backend"
|
||||||
|
license=('MIT')
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||||
|
urls=("https://files.pythonhosted.org/packages/source/${pkgname:0:1}/${pkgname}/${sources[0]}")
|
||||||
|
md5sums=("6ffb3087c9b6a9ffbfc1bb394f7ed1a8")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
# check need pytest, but hatchling is needed by pytest
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
|
||||||
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user