2020-03-19 12:47:23 -05:00
|
|
|
# Description: Read metadata from Python packages
|
|
|
|
# URL: https://pypi.org/project/importlib-metadata/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: python3-zipp
|
|
|
|
|
|
|
|
name=python3-importlib_metadata
|
2020-08-25 12:41:42 -05:00
|
|
|
version=1.7.0
|
2020-03-19 12:47:23 -05:00
|
|
|
release=1
|
2020-08-25 12:41:42 -05:00
|
|
|
source=(https://files.pythonhosted.org/packages/e2/ae/0b037584024c1557e537d25482c306cf6327b5a09b6c4b893579292c1c38/importlib_metadata-$version.tar.gz)
|
2020-03-19 12:47:23 -05:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd importlib_metadata-$version
|
|
|
|
python3 setup.py build
|
|
|
|
python3 setup.py install --root=$PKG
|
2020-07-10 11:47:02 +00:00
|
|
|
find $PKG \(\
|
|
|
|
-iname '*changelog*' -o \
|
|
|
|
-iname '*index*' -o \
|
|
|
|
-iname '*example*' -o \
|
|
|
|
-iname '*using*' \) -exec rm -fr '{}' \+
|
2020-03-19 12:47:23 -05:00
|
|
|
}
|