mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-13 15:04:33 +02:00
60 lines
1.5 KiB
Text
60 lines
1.5 KiB
Text
# Contributor: knuxify <knuxify@gmail.com>
|
|
# Maintainer: knuxify <knuxify@gmail.com>
|
|
pkgname=hatch
|
|
pkgver=1.14.1
|
|
pkgrel=0
|
|
pkgdesc="Modern, extensible Python project management"
|
|
url="https://hatch.pypa.io/latest/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-click
|
|
py3-hatchling
|
|
py3-httpx
|
|
py3-hyperlink
|
|
py3-keyring
|
|
py3-packaging
|
|
py3-pexpect
|
|
py3-platformdirs
|
|
py3-rich
|
|
py3-shellingham
|
|
py3-tomli-w
|
|
py3-tomlkit
|
|
py3-userpath
|
|
py3-uv
|
|
py3-virtualenv
|
|
py3-zstandard
|
|
"
|
|
makedepends="py3-gpep517 py3-hatch-vcs"
|
|
checkdepends="py3-pytest py3-trustme"
|
|
source="https://github.com/pypa/hatch/archive/hatch-v$pkgver/hatch-$pkgver.tar.gz
|
|
packaging-24.2.patch"
|
|
subpackages="$pkgname-pyc"
|
|
builddir="$srcdir/hatch-hatch-v$pkgver"
|
|
# Tests are broken:
|
|
# https://github.com/pypa/hatch/issues/1850
|
|
# https://github.com/pypa/hatch/issues/1877
|
|
# ...and others
|
|
options="!check"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
94cea590fc6e86d9d50fc693651055e4d2b8d7d5e46fa7d03072f616e9d353b3c392d1e252111f9de781585ed7073b1dd5522b126039cc8e2ddc9036efe61443 hatch-1.14.1.tar.gz
|
|
35d30acd2774a79f1671c5d0ed0a75c8848e980e0e867b9ca89695c387fa53556081730ae90d2b5e37c44236c1b6c28d45f2010e29b7fc87772d031752fda9f9 packaging-24.2.patch
|
|
"
|