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