# Maintainer: atom2013 <atom.long@hotmail.com>

_realname=packaging
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=25.0
pkgrel=1
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
msys2_references=(
  'purl: pkg:pypi/packaging'
)
license=('spdx:BSD-2-Clause OR Apache-2.0')
depends=('python')
makedepends=('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=('d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f')

build() {
  cd "${srcdir}"/packaging-${pkgver}
  /usr/bin/python -m flit_core.wheel
}

package() {
  cd "${srcdir}"/packaging-${pkgver}
  /usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl
}

