Files
MSYS2-packages/python-packaging/PKGBUILD
2022-12-10 21:18:42 +01:00

30 lines
886 B
Bash

# Maintainer: atom2013 <atom.long@hotmail.com>
_realname=packaging
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=22.0
pkgrel=1
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
license=('spdx:BSD-2-Clause OR Apache-2.0')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-flit-core' )
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=("https://pypi.io/packages/source/p/packaging/packaging-${pkgver}.tar.gz")
sha256sums=('2198ec20bd4c017b8f9717e00f0c8714076fc2fd93816750ab48e2c41de2cfd3')
build() {
cd "${srcdir}"/packaging-${pkgver}
/usr/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}"/packaging-${pkgver}
/usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl
}