[new-package] hatch-fancy-pypi-readme 22.8.0
This commit is contained in:
parent
83ecd068ee
commit
1ac7f1bc21
33
python-hatch-fancy-pypi-readme/PKGBUILD
Normal file
33
python-hatch-fancy-pypi-readme/PKGBUILD
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Contributor: Mehdi Chinoune <mehdi.chinoune@hotmail.com>
|
||||||
|
|
||||||
|
_realname=hatch-fancy-pypi-readme
|
||||||
|
pkgbase=python-hatch-fancy-pypi-readme
|
||||||
|
pkgname=("python-${_realname}")
|
||||||
|
pkgver=22.8.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Fancy PyPI READMEs with Hatch"
|
||||||
|
arch=('any')
|
||||||
|
license=('spdx:MIT')
|
||||||
|
url="https://github.com/hynek/hatch-fancy-pypi-readme"
|
||||||
|
depends=('python'
|
||||||
|
'python-hatchling'
|
||||||
|
'python-tomli')
|
||||||
|
makedepends=(
|
||||||
|
'python-build'
|
||||||
|
'python-installer'
|
||||||
|
)
|
||||||
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname//-/_}-${pkgver}.tar.gz")
|
||||||
|
sha256sums=('da91282ca09601c18aded8e378daf8b578c70214866f0971156ee9bb9ce6c26a')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "${srcdir}/${_realname//-/_}-${pkgver}"
|
||||||
|
|
||||||
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/${_realname//-/_}-${pkgver}"
|
||||||
|
|
||||||
|
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||||
|
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user