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