mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
Merge pull request #103023 from cheriimoya/bluetooth_battery
bluetooth_battery: init at 1.2.0
This commit is contained in:
commit
0edf361df7
@ -1583,6 +1583,12 @@
|
||||
githubId = 33503784;
|
||||
name = "Yucheng Zhang";
|
||||
};
|
||||
cheriimoya = {
|
||||
email = "github@hausch.xyz";
|
||||
github = "cheriimoya";
|
||||
githubId = 28303440;
|
||||
name = "Max Hausch";
|
||||
};
|
||||
chessai = {
|
||||
email = "chessai1996@gmail.com";
|
||||
github = "chessai";
|
||||
|
30
pkgs/applications/misc/bluetooth_battery/default.nix
Normal file
30
pkgs/applications/misc/bluetooth_battery/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -3219,6 +3219,8 @@ in
|
||||
|
||||
biosdevname = callPackage ../tools/networking/biosdevname { };
|
||||
|
||||
bluetooth_battery = python3Packages.callPackage ../applications/misc/bluetooth_battery { };
|
||||
|
||||
code-browser-qt = libsForQt5.callPackage ../applications/editors/code-browser { withQt = true;
|
||||
};
|
||||
code-browser-gtk = callPackage ../applications/editors/code-browser { withGtk = true;
|
||||
|
Loading…
Reference in New Issue
Block a user