Files
nixpkgs/pkgs/development/python-modules/govee-ble/default.nix
T
2026-03-01 10:10:59 +01:00

50 lines
1.1 KiB
Nix

{
lib,
bluetooth-data-tools,
bluetooth-sensor-state-data,
buildPythonPackage,
fetchFromGitHub,
home-assistant-bluetooth,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
sensor-state-data,
}:
buildPythonPackage (finalAttrs: {
pname = "govee-ble";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "govee-ble";
tag = "v${finalAttrs.version}";
hash = "sha256-+qzSNwV+2h75LVly7kZaaulKQp5Hp0N8k05BauN1TXo=";
};
build-system = [ poetry-core ];
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "govee_ble" ];
meta = {
description = "Library for Govee BLE devices";
homepage = "https://github.com/Bluetooth-Devices/govee-ble";
changelog = "https://github.com/bluetooth-devices/govee-ble/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})