# Description: python data analysis library, optimized for humans instead of machines # URL: https://github.com/wireservice/agate/ # Maintainer: John McQuah, jmcquah at disroot dot org # Depends on: python3-isodate python3-leather python3-parsedatetime python3-pyicu python3-pytimeparse python3-slugify name=python3-agate version=1.6.3 release=1 source=(https://github.com/wireservice/${name##python3-}/archive/refs/tags/$version.tar.gz) renames=($name-$version.tar.gz) build() { cd ${name##python3-}-$version # fix erroneous prohibition of parsedatetime version 2.6 (only version 2.5 is broken) sed -i "/parsedatetime>=/d; /python-slugify>=/i'parsedatetime>=2.1,!=2.5'," setup.py /usr/bin/python3 setup.py build /usr/bin/python3 setup.py install --skip-build \ --optimize=1 --prefix=/usr --root=$PKG }