mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
a19d9041fd
Diff: https://github.com/meshtastic/Meshtastic-python/compare/refs/tags/2.5.4...2.5.5 Changelog: https://github.com/meshtastic/python/releases/tag/2.5.5
124 lines
2.2 KiB
Nix
124 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
bleak,
|
|
buildPythonPackage,
|
|
dash-bootstrap-components,
|
|
dotmap,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
packaging,
|
|
parse,
|
|
pexpect,
|
|
platformdirs,
|
|
poetry-core,
|
|
ppk2-api,
|
|
print-color,
|
|
protobuf,
|
|
pyarrow,
|
|
pyparsing,
|
|
pypubsub,
|
|
pyqrcode,
|
|
pyserial,
|
|
pytap2,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyyaml,
|
|
requests,
|
|
riden,
|
|
setuptools,
|
|
tabulate,
|
|
timeago,
|
|
webencodings,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meshtastic";
|
|
version = "2.5.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meshtastic";
|
|
repo = "Meshtastic-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-k+Hq3pIuh8lwyoCl1KyHLt2B3OrGzBC6XDauUfVEyd8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"bleak"
|
|
"protobuf"
|
|
];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
bleak
|
|
dotmap
|
|
packaging
|
|
parse
|
|
pexpect
|
|
platformdirs
|
|
ppk2-api
|
|
print-color
|
|
protobuf
|
|
pyarrow
|
|
pyparsing
|
|
pypubsub
|
|
pyqrcode
|
|
pyserial
|
|
pyyaml
|
|
requests
|
|
setuptools
|
|
tabulate
|
|
timeago
|
|
webencodings
|
|
];
|
|
|
|
optional-dependencies = {
|
|
tunnel = [ pytap2 ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
dash-bootstrap-components
|
|
hypothesis
|
|
pytestCheckHook
|
|
riden
|
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
|
|
|
preCheck = ''
|
|
export PATH="$PATH:$out/bin";
|
|
'';
|
|
|
|
pythonImportsCheck = [ "meshtastic" ];
|
|
|
|
disabledTestPaths = [
|
|
# Circular import with dash-bootstrap-components
|
|
"meshtastic/tests/test_analysis.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# TypeError
|
|
"test_main_info_with_seriallog_output_txt"
|
|
"test_main_info_with_seriallog_stdout"
|
|
"test_main_info_with_tcp_interfa"
|
|
"test_main_info"
|
|
"test_main_no_proto"
|
|
"test_main_support"
|
|
"test_MeshInterface"
|
|
"test_message_to_json_shows_all"
|
|
"test_node"
|
|
"test_SerialInterface_single_port"
|
|
"test_support_info"
|
|
"test_TCPInterface"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for talking to Meshtastic devices";
|
|
homepage = "https://github.com/meshtastic/Meshtastic-python";
|
|
changelog = "https://github.com/meshtastic/python/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|