21 buildPythonPackage rec {
24 format = "setuptools";
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
30 repo = "Meshtastic-python";
31 rev = "refs/tags/${version}";
32 hash = "sha256-W//mDKtTWjcKT43n82OU3h4yKrNZMAVzLzQCjsmkJP0=";
35 propagatedBuildInputs = [
50 passthru.optional-dependencies = {
62 export PATH="$PATH:$out/bin";
65 pythonImportsCheck = [
70 # AttributeError: 'HardwareMessage'...
71 "test_handleFromRadio_with_my_info"
72 "test_handleFromRadio_with_node_info"
73 "test_main_ch_longsfast_on_non_primary_channel"
74 "test_main_ch_set_name_with_ch_index"
75 "test_main_configure_with_camel_case_keys"
76 "test_main_configure_with_snake_case"
77 "test_main_export_config_called_from_main"
78 "test_main_export_config_use_camel"
79 "test_main_export_config"
80 "test_main_get_with_invalid"
81 "test_main_get_with_valid_values_camel"
82 "test_main_getPref_invalid_field_camel"
83 "test_main_getPref_invalid_field"
84 "test_main_getPref_valid_field_bool_camel"
85 "test_main_getPref_valid_field_bool"
86 "test_main_getPref_valid_field_camel"
87 "test_main_getPref_valid_field_string_camel"
88 "test_main_getPref_valid_field_string"
89 "test_main_getPref_valid_field"
90 "test_main_set_invalid_wifi_passwd"
91 "test_main_set_valid_camel_case"
92 "test_main_set_valid_wifi_passwd"
94 "test_main_set_with_invalid"
95 "test_main_setPref_ignore_incoming_0"
96 "test_main_setPref_ignore_incoming_123"
97 "test_main_setPref_invalid_field_camel"
98 "test_main_setPref_invalid_field"
99 "test_main_setPref_valid_field_int_as_string"
102 "test_setURL_empty_url"
104 "test_writeConfig_with_no_radioConfig"
109 "test_main_sendtext_with_channel"
111 "test_getNode_not_local"
112 "test_getNode_not_local_timeout"
113 "test_main_onConnected_exception"
117 description = "Python API for talking to Meshtastic devices";
118 homepage = "https://github.com/meshtastic/Meshtastic-python";
119 changelog = "https://github.com/meshtastic/python/releases/tag/${version}";
120 license = with licenses; [ asl20 ];
121 maintainers = with maintainers; [ fab ];