Files
MSYS2-packages/python-fastimport/PKGBUILD
Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

35 lines
863 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_realname=fastimport
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.9.14
pkgrel=5
pkgdesc="VCS fastimport/fastexport parser"
arch=('any')
license=('spdx:GPL-2.0-or-later')
url="https://pypi.python.org/pypi/fastimport/"
msys2_references=(
"purl: pkg:pypi/fastimport"
)
depends=('python')
makedepends=(
"python-setuptools"
"python-build"
"python-installer"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('6ac99dda4e7b0b3ae831507b6d0094802e6dd95891feafde8cc5c405b6c149ca')
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
}