2020-06-04 10:52:43 -05:00
|
|
|
# Description: Distro - an OS platform information API
|
|
|
|
# URL: https://pypi.org/project/distro/
|
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2022-10-28 10:55:29 -05:00
|
|
|
# Depends on: python3-build
|
2020-06-04 10:52:43 -05:00
|
|
|
|
|
|
|
name=python3-distro
|
2022-10-28 10:55:29 -05:00
|
|
|
version=1.8.0
|
2020-06-04 10:52:43 -05:00
|
|
|
release=1
|
2022-03-10 15:07:15 -06:00
|
|
|
source=(https://pypi.io/packages/source/d/distro/distro-$version.tar.gz)
|
2020-06-04 10:52:43 -05:00
|
|
|
|
|
|
|
build() {
|
2022-10-28 10:55:29 -05:00
|
|
|
cd distro-$version
|
|
|
|
/usr/bin/python3 -m build --wheel --no-isolation
|
|
|
|
PIP_CONFIG_FILE=/dev/null /usr/bin/pip3 install --isolated --root=$PKG \
|
|
|
|
--ignore-installed --no-deps dist/*.whl
|
|
|
|
rm $PKG/usr/lib/python*/site-packages/distro-$version.dist-info/INSTALLER
|
2020-06-04 10:52:43 -05:00
|
|
|
}
|