Files
MSYS2-packages/python-poetry-core/PKGBUILD
2022-12-17 14:37:00 +01:00

34 lines
867 B
Bash

_realname=poetry-core
pkgname="python-${_realname}"
pkgver=1.4.0
pkgrel=1
pkgdesc='Poetry PEP 517 Build Backend'
arch=(any)
url='https://github.com/python-poetry/poetry-core'
license=('spdx:MIT')
depends=("python")
makedepends=(
"python-setuptools"
"python-wheel"
"python-build"
"python-installer"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname/-/_}-${pkgver}.tar.gz")
sha256sums=('514bd33c30e0bf56b0ed44ee15e120d7e47b61ad908b2b1011da68c48a84ada9')
build() {
cd "${_realname/-/_}-${pkgver}"
# https://github.com/python-poetry/poetry/issues/5547
export GIT_DIR="$(pwd)"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${_realname/-/_}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}