Merge pull request #300094 from fabaff/meshtastic-bump

python312Packages.meshtastic: 2.3.0 -> 2.3.3
This commit is contained in:
Fabian Affolter 2024-03-30 08:49:37 +01:00 committed by GitHub
commit b1ac8efc6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 40 additions and 63 deletions

View File

@ -21,7 +21,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "meshtastic"; pname = "meshtastic";
version = "2.3.0"; version = "2.3.3";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -30,14 +30,14 @@ buildPythonPackage rec {
owner = "meshtastic"; owner = "meshtastic";
repo = "Meshtastic-python"; repo = "Meshtastic-python";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-HiksPxV5VTIOV71J0zlC8iiXmF85a0dTYjjnWthhdGY="; hash = "sha256-kydZgOiQHDovQ5RwyLru2nyHoCEVZClq8wJit/mnbvU=";
}; };
nativeBuildInputs = [ build-system = [
setuptools setuptools
]; ];
propagatedBuildInputs = [ dependencies = [
bleak bleak
dotmap dotmap
pexpect pexpect
@ -73,50 +73,14 @@ buildPythonPackage rec {
]; ];
disabledTests = [ disabledTests = [
# AttributeError: 'HardwareMessage'... # TypeError
"test_handleFromRadio_with_my_info" "test_main_info"
"test_handleFromRadio_with_node_info" "test_main_support"
"test_main_ch_longsfast_on_non_primary_channel" "test_main_info_with_tcp_interfa"
"test_main_ch_set_name_with_ch_index" "test_main_no_proto"
"test_main_configure_with_camel_case_keys" "test_main_info_with_seriallog_stdout"
"test_main_configure_with_snake_case" "test_main_info_with_seriallog_output_txt"
"test_main_export_config_called_from_main" "test_support_info"
"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_onGPIOreceive"
"test_setURL_empty_url"
"test_watchGPIOs"
"test_writeConfig_with_no_radioConfig"
"test_writeGPIOs"
"test_reboot"
"test_shutdown"
"test_main_sendtext"
"test_main_sendtext_with_channel"
"test_MeshInterface"
"test_getNode_not_local"
"test_getNode_not_local_timeout"
"test_main_onConnected_exception"
]; ];
meta = with lib; { meta = with lib; {

View File

@ -2,27 +2,43 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, mock , mock
, nose , pynose
, pexpect , pexpect
, pyserial , pyserial
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pygatt"; pname = "pygatt";
version = "4.0.5"; version = "4.0.5";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "peplin"; owner = "peplin";
repo = pname; repo = "pygatt";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "1zdfxidiw0l8n498sy0l33n90lz49n25x889cx6jamjr7frlcihd"; hash = "sha256-DUZGsztZViVNZwmhXoRN5FOQ7BgUeI0SsYgCHlvsrv0=";
}; };
propagatedBuildInputs = [ postPatch = ''
# Not support for Python < 3.4
substituteInPlace setup.py \
--replace-fail "'enum-compat'" "" \
--replace-fail "'coverage >= 3.7.1'," "" \
--replace-fail "'nose >= 1.3.7'" ""
substituteInPlace tests/bgapi/test_bgapi.py \
--replace-fail "assertEquals" "assertEqual"
'';
build-system = [
setuptools
];
dependencies = [
pyserial pyserial
]; ];
@ -34,25 +50,22 @@ buildPythonPackage rec {
# For cross compilation the doCheck is false and therefor the # For cross compilation the doCheck is false and therefor the
# nativeCheckInputs not included. We have to include nose here, since # nativeCheckInputs not included. We have to include nose here, since
# setup.py requires nose unconditionally. # setup.py requires nose unconditionally.
nose pynose
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
mock mock
pytestCheckHook pytestCheckHook
] ] ++ passthru.optional-dependencies.GATTTOOL;
++ passthru.optional-dependencies.GATTTOOL;
postPatch = '' pythonImportsCheck = [
# Not support for Python < 3.4 "pygatt"
substituteInPlace setup.py --replace "'enum-compat'" "" ];
'';
pythonImportsCheck = [ "pygatt" ];
meta = with lib; { meta = with lib; {
description = "Python wrapper the BGAPI for accessing Bluetooth LE Devices"; description = "Python wrapper the BGAPI for accessing Bluetooth LE Devices";
homepage = "https://github.com/peplin/pygatt"; homepage = "https://github.com/peplin/pygatt";
changelog = "https://github.com/peplin/pygatt/blob/v${version}/CHANGELOG.rst";
license = with licenses; [ asl20 mit ]; license = with licenses; [ asl20 mit ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };