cruxports/python3-agate/Pkgfile

22 lines
814 B
Plaintext
Raw Normal View History

2022-02-18 22:40:09 +00:00
# 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
2022-04-26 11:51:12 +00:00
# Depends on: python3-isodate python3-leather python3-parsedatetime python3-pyicu python3-pytimeparse python3-slugify
2022-02-18 22:40:09 +00:00
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
2022-02-18 22:40:09 +00:00
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --skip-build \
--optimize=1 --prefix=/usr --root=$PKG
}