$ pacman -Qo $(which pip)
/usr/bin/pip is owned by python-pip 20.3.4-1
$ sudo pacman -S python-pip
$ find /usr/lib/python3.9/ -name '*distro*'
/usr/lib/python3.9/site-packages/distro-1.6.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/pip/_vendor/distro.py
/usr/lib/python3.9/site-packages/pip/_vendor/__pycache__/distro.cpython-39.pyc
/usr/lib/python3.9/site-packages/distro.py
/usr/lib/python3.9/site-packages/__pycache__/distro.cpython-39.pyc
/usr/lib/python3.9/site-packages/__pycache__/distro.cpython-39.opt-1.pyc
$ pacman -Qo /usr/lib/python3.9/site-packages/distro-1.6.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/distro-1.6.0-py3.9.egg-info/ is owned by python-distro 1.6.0-1
$ sudo pacman -S python-distro
https://wiki.archlinux.org/title/Pacman
For not installed packages: https://wiki.archlinux.org/title/Pkgfile
$ pkgfile -s distro
galaxy/python-distro
community/byobu
community/python-distro
or just pacman:
$ pacman -Ss distro
galaxy/python-distro 1.6.0-1 [installed]
Linux OS platform information API
galaxy/python2-distro 1.6.0-1 [installed]
Linux OS platform information API
galaxy/rpm-tools 4.17.0-1
RPM Package Manager - RPM.org fork, used in major RPM distros
community/distrobuilder 2.0-1
System container image builder for LXC and LXD
community/python-distro 1.6.0-1 [installed]
Linux OS platform information API
community/python2-distro 1.6.0-1 [installed]
Linux OS platform information API
community/rpm-tools 4.17.0-1
RPM Package Manager - RPM.org fork, used in major RPM distros