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