1{
2 lib,
3 aiohttp,
4 aiooui,
5 buildPythonPackage,
6 fetchFromGitHub,
7 home-assistant-bluetooth,
8 mac-vendor-lookup,
9 poetry-core,
10 pytest-asyncio,
11 pytest-cov-stub,
12 pytestCheckHook,
13 pythonOlder,
14}:
15
16buildPythonPackage rec {
17 pname = "ibeacon-ble";
18 version = "1.2.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.9";
22
23 src = fetchFromGitHub {
24 owner = "Bluetooth-Devices";
25 repo = "ibeacon-ble";
26 tag = "v${version}";
27 hash = "sha256-1liSWxduYpjIMu7226EH4bsc7gca5g/fyL79W4ZMdU4=";
28 };
29
30 build-system = [ poetry-core ];
31
32 dependencies = [
33 aiohttp
34 aiooui
35 home-assistant-bluetooth
36 mac-vendor-lookup
37 ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytest-cov-stub
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [ "ibeacon_ble" ];
46
47 meta = with lib; {
48 description = "Library for iBeacon BLE devices";
49 homepage = "https://github.com/Bluetooth-Devices/ibeacon-ble";
50 changelog = "https://github.com/Bluetooth-Devices/ibeacon-ble/blob/v${version}/CHANGELOG.md";
51 license = licenses.mit;
52 maintainers = with maintainers; [ fab ];
53 };
54}