Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 51 lines 1.2 kB view raw
1{ 2 lib, 3 bluetooth-data-tools, 4 bluetooth-sensor-state-data, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytestCheckHook, 9 pythonOlder, 10 sensor-state-data, 11}: 12 13buildPythonPackage rec { 14 pname = "thermobeacon-ble"; 15 version = "0.6.2"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "bluetooth-devices"; 22 repo = "thermobeacon-ble"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-Nmu9oS6zkCTqk/cf8+fqDFhVcG/2JuDDumGTCubeS5o="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace " --cov=thermobeacon_ble --cov-report=term-missing:skip-covered" "" 30 ''; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 propagatedBuildInputs = [ 35 bluetooth-data-tools 36 bluetooth-sensor-state-data 37 sensor-state-data 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "thermobeacon_ble" ]; 43 44 meta = with lib; { 45 description = "Library for Thermobeacon BLE devices"; 46 homepage = "https://github.com/bluetooth-devices/thermobeacon-ble"; 47 changelog = "https://github.com/Bluetooth-Devices/thermobeacon-ble/releases/tag/v${version}"; 48 license = with licenses; [ mit ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}