2022-02-18 17:40:09 -05:00
|
|
|
# Description: small python library for parsing time expressions
|
|
|
|
|
# URL: https://github.com/wroberts/pytimeparse
|
|
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2025-03-16 16:06:17 +00:00
|
|
|
# Depends on: python3-build
|
2022-02-18 17:40:09 -05:00
|
|
|
|
|
|
|
|
name=python3-pytimeparse
|
|
|
|
|
version=1.1.8
|
2026-05-18 16:58:21 +00:00
|
|
|
release=2
|
|
|
|
|
source=(https://github.com/wroberts/pytimeparse/releases/download/$version/pytimeparse-$version.tar.gz)
|
2022-02-18 17:40:09 -05:00
|
|
|
|
|
|
|
|
build() {
|
2026-05-18 16:58:21 +00:00
|
|
|
cd pytimeparse-$version
|
2025-03-16 16:06:17 +00:00
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
2022-02-18 17:40:09 -05:00
|
|
|
|
2026-05-18 16:58:21 +00:00
|
|
|
/usr/bin/python3 -m installer --destdir="$PKG" dist/*.whl
|
2026-01-20 15:53:20 +00:00
|
|
|
rm -rf "$PKG"/usr/lib/python3.12/site-packages/pytimeparse-$version.dist-info/licenses
|
2022-02-18 17:40:09 -05:00
|
|
|
}
|