# Description: small python library for parsing time expressions
# URL: https://github.com/wroberts/pytimeparse
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-build 

name=python3-pytimeparse
version=1.1.8
release=2
source=(https://github.com/wroberts/pytimeparse/releases/download/$version/pytimeparse-$version.tar.gz)

build() {
    cd pytimeparse-$version
    /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation

    /usr/bin/python3 -m installer --destdir="$PKG" dist/*.whl
    rm -rf "$PKG"/usr/lib/python3.12/site-packages/pytimeparse-$version.dist-info/licenses
}
