python3Packages.py3status: add file as runtime dependancy (#106926)

This helps to resolve issues:
- https://github.com/ultrabug/py3status/issues/1945
- https://github.com/ultrabug/py3status/issues/1961
This commit is contained in:
Cody Hiar 2021-01-18 12:21:24 -07:00 committed by GitHub
parent 79fa5c1c45
commit 21160da284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,9 +33,8 @@ buildPythonPackage rec {
doCheck = false;
propagatedBuildInputs = [
pytz requests tzlocal i3ipc pydbus pygobject3 pyserial setuptools dbus-python
pytz requests tzlocal i3ipc pydbus pygobject3 pyserial setuptools dbus-python file
];
buildInputs = [ file ];
prePatch = ''
sed -i -e "s|'file|'${file}/bin/file|" py3status/parse_config.py
sed -i -e "s|\[\"acpi\"|\[\"${acpi}/bin/acpi\"|" py3status/modules/battery_level.py