1{
2 lib,
3 bluetooth-data-tools,
4 bluetooth-sensor-state-data,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 poetry-core,
9 pytest-cov-stub,
10 pytestCheckHook,
11 pytz,
12 sensor-state-data,
13}:
14
15buildPythonPackage rec {
16 pname = "bthome-ble";
17 version = "3.14.2";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "Bluetooth-Devices";
22 repo = "bthome-ble";
23 tag = "v${version}";
24 hash = "sha256-kxKQnHrRZE7ugrRn7VSwQ99TtEX/DmH5x4Yy22UsXjA=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 bluetooth-data-tools
31 bluetooth-sensor-state-data
32 cryptography
33 sensor-state-data
34 pytz
35 ];
36
37 nativeCheckInputs = [
38 pytest-cov-stub
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [ "bthome_ble" ];
43
44 meta = with lib; {
45 description = "Library for BThome BLE devices";
46 homepage = "https://github.com/Bluetooth-Devices/bthome-ble";
47 changelog = "https://github.com/bluetooth-devices/bthome-ble/blob/${src.tag}/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = with maintainers; [ fab ];
50 };
51}