1{ 2 lib, 3 bluetooth-data-tools, 4 bluetooth-sensor-state-data, 5 buildPythonPackage, 6 fetchFromGitHub, 7 hatchling, 8 home-assistant-bluetooth, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12 sensor-state-data, 13}: 14 15buildPythonPackage rec { 16 pname = "sensirion-ble"; 17 version = "0.1.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "akx"; 24 repo = "sensirion-ble"; 25 tag = "v${version}"; 26 hash = "sha256-VeUfrQ/1Hqs9yueUKcv/ZpCDEEy84VDcZpuTT4fXSGw="; 27 }; 28 29 build-system = [ hatchling ]; 30 31 dependencies = [ 32 bluetooth-data-tools 33 bluetooth-sensor-state-data 34 home-assistant-bluetooth 35 sensor-state-data 36 ]; 37 38 nativeCheckInputs = [ 39 pytest-cov-stub 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "sensirion_ble" ]; 44 45 meta = with lib; { 46 description = "Parser for Sensirion BLE devices"; 47 homepage = "https://github.com/akx/sensirion-ble"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}