1 { lib, fetchFromGitHub, buildPythonApplication, pybluez }:
3 buildPythonApplication rec {
4 pname = "bluetooth_battery";
7 src = fetchFromGitHub {
9 repo = "Bluetooth_Headset_Battery_Level";
11 sha256 = "067qfxh228cy1x95bnjp88dx4k00ajj7ay7fz5vr1gkj2yfa203s";
14 propagatedBuildInputs = [ pybluez ];
20 cp $src/bluetooth_battery.py $out/bin/bluetooth_battery
24 description = "Fetch the battery charge level of some Bluetooth headsets";
25 mainProgram = "bluetooth_battery";
26 homepage = "https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level";
27 license = licenses.gpl3Plus;
28 platforms = platforms.unix;
29 maintainers = with maintainers; [ cheriimoya ];