From 1c4aee4a7cc43ec5786db01e5f9259f3a51c0dd0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 29 Sep 2022 01:01:28 +0200 Subject: [PATCH] python310Packages.meshtastic: 1.2.95 -> 1.3.36 https://github.com/meshtastic/Meshtastic-python/releases/tag/1.3.36 --- .../python-modules/meshtastic/default.nix | 52 +++++++++++++++++-- 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/meshtastic/default.nix b/pkgs/development/python-modules/meshtastic/default.nix index 596b622f6793..2432abe7b09c 100644 --- a/pkgs/development/python-modules/meshtastic/default.nix +++ b/pkgs/development/python-modules/meshtastic/default.nix @@ -18,16 +18,16 @@ buildPythonPackage rec { pname = "meshtastic"; - version = "1.2.95"; + version = "1.3.36"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "meshtastic"; repo = "Meshtastic-python"; rev = version; - sha256 = "sha256-CMw7PbM82AjbhrCYnRuxF9WFJqr6gvCEkTyG2vKM7FM="; + hash = "sha256-mv4sj9W8bWSaqiPlBdW0v0QAPr9beD/sOgrfJH68S5o="; }; propagatedBuildInputs = [ @@ -43,6 +43,12 @@ buildPythonPackage rec { timeago ]; + passthru.optional-dependencies = { + tunnel = [ + pytap2 + ]; + }; + checkInputs = [ pytap2 pytestCheckHook @@ -56,9 +62,47 @@ buildPythonPackage rec { "meshtastic" ]; + disabledTests = [ + # AttributeError: 'HardwareMessage'... + "test_handleFromRadio_with_my_info" + "test_handleFromRadio_with_node_info" + "test_main_ch_longsfast_on_non_primary_channel" + "test_main_ch_set_name_with_ch_index" + "test_main_configure_with_camel_case_keys" + "test_main_configure_with_snake_case" + "test_main_export_config_called_from_main" + "test_main_export_config_use_camel" + "test_main_export_config" + "test_main_get_with_invalid" + "test_main_get_with_valid_values_camel" + "test_main_getPref_invalid_field_camel" + "test_main_getPref_invalid_field" + "test_main_getPref_valid_field_bool_camel" + "test_main_getPref_valid_field_bool" + "test_main_getPref_valid_field_camel" + "test_main_getPref_valid_field_string_camel" + "test_main_getPref_valid_field_string" + "test_main_getPref_valid_field" + "test_main_set_invalid_wifi_passwd" + "test_main_set_valid_camel_case" + "test_main_set_valid_wifi_passwd" + "test_main_set_valid" + "test_main_set_with_invalid" + "test_main_setPref_ignore_incoming_0" + "test_main_setPref_ignore_incoming_123" + "test_main_setPref_invalid_field_camel" + "test_main_setPref_invalid_field" + "test_main_setPref_valid_field_int_as_string" + "test_readGPIOs" + "test_setURL_empty_url" + "test_watchGPIOs" + "test_writeConfig_with_no_radioConfig" + "test_writeGPIOs" + ]; + meta = with lib; { description = "Python API for talking to Meshtastic devices"; - homepage = "https://meshtastic.github.io/Meshtastic-python/"; + homepage = "https://github.com/meshtastic/Meshtastic-python"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };