git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #103023 from cheriimoya/bluetooth_battery

bluetooth_battery: init at 1.2.0

commit0edf361df779316e690b4baa46230889b05cc5f2 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateTue 19 Jan 2021, 12:09 (6 years ago) parent1b3176b52d6ab3
3 files changed+38
maintainers/maintainer-list.nix+6 pkgs/applications/misc/bluetooth_battery/default.nix+30 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -1583,6 +1583,12 @@
15831583 githubId = 33503784;
15841584 name = "Yucheng Zhang";
15851585 };
1586+ cheriimoya = {
1587+ email = "github@hausch.xyz";
1588+ github = "cheriimoya";
1589+ githubId = 28303440;
1590+ name = "Max Hausch";
1591+ };
15861592 chessai = {
15871593 email = "chessai1996@gmail.com";
15881594 github = "chessai";
pkgs/applications/misc/bluetooth_battery/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ lib, fetchFromGitHub, buildPythonApplication, pybluez }:
2+
3+buildPythonApplication rec {
4+ pname = "bluetooth_battery";
5+ version = "1.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "TheWeirdDev";
9+ repo = "Bluetooth_Headset_Battery_Level";
10+ rev = "v${version}";
11+ sha256 = "121pkaq9z8p2i35cqs32aygjvf82r961w0axirpmsrbmrwq2hh6g";
12+ };
13+
14+ propagatedBuildInputs = [ pybluez ];
15+
16+ format = "other";
17+
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ cp $src/bluetooth_battery.py $out/bin/bluetooth_battery
21+ '';
22+
23+ meta = with lib; {
24+ description = "Fetch the battery charge level of some Bluetooth headsets";
25+ homepage = "https://github.com/TheWeirdDev/Bluetooth_Headset_Battery_Level";
26+ license = licenses.gpl3Plus;
27+ platforms = platforms.unix;
28+ maintainers = with maintainers; [ cheriimoya ];
29+ };
30+}
pkgs/top-level/all-packages.nix+2
@@ -3219,6 +3219,8 @@ in
32193219
32203220 biosdevname = callPackage ../tools/networking/biosdevname { };
32213221
3222+ bluetooth_battery = python3Packages.callPackage ../applications/misc/bluetooth_battery { };
3223+
32223224 code-browser-qt = libsForQt5.callPackage ../applications/editors/code-browser { withQt = true;
32233225 };
32243226 code-browser-gtk = callPackage ../applications/editors/code-browser { withGtk = true;