nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 bluetooth-data-tools, 4 bluetooth-sensor-state-data, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-cov-stub, 9 pytestCheckHook, 10 sensor-state-data, 11}: 12 13buildPythonPackage rec { 14 pname = "thermobeacon-ble"; 15 version = "1.0.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "bluetooth-devices"; 20 repo = "thermobeacon-ble"; 21 tag = "v${version}"; 22 hash = "sha256-ij8g1bq9xmHLSHf2O69H6laK+KsEmW7E+hXv52/iJkY="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ 28 bluetooth-data-tools 29 bluetooth-sensor-state-data 30 sensor-state-data 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-cov-stub 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "thermobeacon_ble" ]; 39 40 meta = { 41 description = "Library for Thermobeacon BLE devices"; 42 homepage = "https://github.com/bluetooth-devices/thermobeacon-ble"; 43 changelog = "https://github.com/Bluetooth-Devices/thermobeacon-ble/releases/tag/${src.tag}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}