-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103023 from cheriimoya/bluetooth_battery
bluetooth_battery: init at 1.2.0
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1583,6 +1583,12 @@ | |
githubId = 33503784; | ||
name = "Yucheng Zhang"; | ||
}; | ||
cheriimoya = { | ||
email = "[email protected]"; | ||
github = "cheriimoya"; | ||
githubId = 28303440; | ||
name = "Max Hausch"; | ||
}; | ||
chessai = { | ||
email = "[email protected]"; | ||
github = "chessai"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ lib, fetchFromGitHub, buildPythonApplication, pybluez }: | ||
|
||
buildPythonApplication rec { | ||
pname = "bluetooth_battery"; | ||
version = "1.2.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "TheWeirdDev"; | ||
repo = "Bluetooth_Headset_Battery_Level"; | ||
rev = "v${version}"; | ||
sha256 = "121pkaq9z8p2i35cqs32aygjvf82r961w0axirpmsrbmrwq2hh6g"; | ||
}; | ||
|
||
propagatedBuildInputs = [ pybluez ]; | ||
|
||
format = "other"; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp $src/bluetooth_battery.py $out/bin/bluetooth_battery | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Fetch the battery charge level of some Bluetooth headsets"; | ||
homepage = "https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level"; | ||
license = licenses.gpl3Plus; | ||
platforms = platforms.unix; | ||
maintainers = with maintainers; [ cheriimoya ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters