1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, home-assistant-bluetooth 6, mac-vendor-lookup 7, poetry-core 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "ibeacon-ble"; 14 version = "1.0.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "Bluetooth-Devices"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-iYgGflM0IpSIMNgPpJAFAl9FYoMfRinM3sP6VRcBSMc="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" "" 29 ''; 30 31 nativeBuildInputs = [ 32 poetry-core 33 ]; 34 35 propagatedBuildInputs = [ 36 aiohttp 37 home-assistant-bluetooth 38 mac-vendor-lookup 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ 46 "ibeacon_ble" 47 ]; 48 49 meta = with lib; { 50 description = "Library for iBeacon BLE devices"; 51 homepage = "https://github.com/Bluetooth-Devices/ibeacon-ble"; 52 changelog = "https://github.com/Bluetooth-Devices/ibeacon-ble/blob/v${version}/CHANGELOG.md"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}