pkgname=python-license-expression pkgver=30.4.1 pkgrel=1 pkgdesc="Utility to parse, normalize and compare license expressions" arch=('x86_64') url="https://github.com/nexB/license-expression" license=('Apache-2.0') depends=('python' 'python-boolean.py') makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') source=(https://github.com/aboutcode-org/license-expression/releases/download/v${pkgver}/license_expression-${pkgver}.tar.gz) sha256sums=(9f02105f9e0fcecba6a85dfbbed7d94ea1c3a70cf23ddbfb5adf3438a6f6fce0) prepare() { cd license_expression-${pkgver} # Fix file to comply with PEP-440 sed -i pyproject.toml -e "s/^fallback_version =.*/fallback_version = \"${pkgver}\"/" } build() { cd license_expression-${pkgver} python3 -m build --wheel --no-isolation } package() { cd license_expression-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }