2025-01-04 00:19:17 +01:00

53 lines
1.1 KiB
Nix

{
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 = "rapt-ble";
version = "0.1.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "sairon";
repo = "rapt-ble";
tag = "v${version}";
hash = "sha256-ozZwVgTV/xYl1nXLiybcPs6DQKocNdbxTEYDfYyQuvY=";
};
build-system = [ poetry-core ];
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "rapt_ble" ];
meta = with lib; {
description = "Library for RAPT Pill hydrometer BLE devices";
homepage = "https://github.com/sairon/rapt-ble";
changelog = "https://github.com/sairon/rapt-ble/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}