Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "mopeka-iot-ble"; 15 version = "0.4.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "bluetooth-devices"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-x/cKg2NC6kssUQeBuQH4yghlRDgs/fJ0bWWL+qnHgcM="; 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 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace pyproject.toml \ 44 --replace " --cov=mopeka_iot_ble --cov-report=term-missing:skip-covered" "" 45 ''; 46 47 pythonImportsCheck = [ 48 "mopeka_iot_ble" 49 ]; 50 51 meta = with lib; { 52 description = "Library for Mopeka IoT BLE devices"; 53 homepage = "https://github.com/bluetooth-devices/mopeka-iot-ble"; 54 changelog = "https://github.com/Bluetooth-Devices/mopeka-iot-ble/releases/tag/v${version}"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}