at master 1.1 kB view raw
1{ 2 lib, 3 bluetooth-data-tools, 4 bluetooth-sensor-state-data, 5 buildPythonPackage, 6 fetchFromGitHub, 7 home-assistant-bluetooth, 8 poetry-core, 9 pytest-cov-stub, 10 pytestCheckHook, 11 pythonOlder, 12 sensor-state-data, 13}: 14 15buildPythonPackage rec { 16 pname = "leaone-ble"; 17 version = "0.3.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.11"; 21 22 src = fetchFromGitHub { 23 owner = "bluetooth-devices"; 24 repo = "leaone-ble"; 25 tag = "v${version}"; 26 hash = "sha256-96TOjjz4EkHAnzL53BIR+PifkyrEig/0r+mIfnwc0hE="; 27 }; 28 29 build-system = [ poetry-core ]; 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 = [ "leaone_ble" ]; 44 45 meta = { 46 description = "Bluetooth parser for LeaOne devices"; 47 homepage = "https://github.com/bluetooth-devices/leaone-ble"; 48 changelog = "https://github.com/bluetooth-devices/leaone-ble/blob/${src.rev}/CHANGELOG.md"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 }; 52}