Skip to content

Commit

Permalink
python312Packages.leaone-ble: init at 0.1.0
Browse files Browse the repository at this point in the history
Bluetooth parser for LeaOne devices

https://github.com/bluetooth-devices/leaone-ble
  • Loading branch information
fabaff committed Oct 30, 2024
1 parent 8a2cc6b commit d8f8dfd
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/leaone-ble/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
bluetooth-data-tools,
bluetooth-sensor-state-data,
buildPythonPackage,
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
sensor-state-data,
}:

buildPythonPackage rec {
pname = "leaone-ble";
version = "0.1.0";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = "leaone-ble";
rev = "refs/tags/v${version}";
hash = "sha256-usFjI0zU89dEAbmx9mVemoxlYS8mmLTKIMhH26Rvkeg=";
};

build-system = [ poetry-core ];

dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];

nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];

pythonImportsCheck = [ "leaone_ble" ];

meta = {
description = "Bluetooth parser for LeaOne devices";
homepage = "https://github.com/bluetooth-devices/leaone-ble";
changelog = "https://github.com/bluetooth-devices/leaone-ble/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7010,6 +7010,8 @@ self: super: with self; {

leanblueprint = callPackage ../development/python-modules/leanblueprint { };

leaone-ble = callPackage ../development/python-modules/leaone-ble { };

leb128 = callPackage ../development/python-modules/leb128 { };

led-ble = callPackage ../development/python-modules/led-ble { };
Expand Down

0 comments on commit d8f8dfd

Please sign in to comment.