Something went wrong. Try again.
lol
Something went wrong. Try again.
2.4 kB · 131 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132{ lib, argcomplete, bleak, buildPythonPackage, dash-bootstrap-components, dash, dotmap, fetchFromGitHub, hypothesis, packaging, pandas-stubs, pandas, parse, platformdirs, poetry-core, ppk2-api, print-color, protobuf, pyarrow, pypubsub, pyqrcode, pyserial, pytap2, pytestCheckHook, pyyaml, requests, riden, setuptools, tabulate, wcwidth,}:
buildPythonPackage (finalAttrs: { pname = "meshtastic"; version = "2.7.8"; pyproject = true;
src = fetchFromGitHub { owner = "meshtastic"; repo = "python"; tag = finalAttrs.version; hash = "sha256-LAcBD7BUNzexq3kTY/fw2yPMq66T5+cPj9p3GeGH/Vw="; };
pythonRelaxDeps = [ "bleak" "packaging" "protobuf" "tabulate" ];
build-system = [ poetry-core ];
dependencies = [ bleak packaging protobuf pypubsub pyserial pyyaml requests setuptools tabulate ];
optional-dependencies = { analysis = [ dash dash-bootstrap-components pandas pandas-stubs ]; cli = [ argcomplete dotmap print-color pyqrcode wcwidth ]; powermon = [ parse platformdirs ppk2-api pyarrow riden ]; tunnel = [ pytap2 ]; };
nativeCheckInputs = [ hypothesis pytestCheckHook ] ++ lib.concatAttrValues finalAttrs.passthru.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 = { description = "Python API for talking to Meshtastic devices"; homepage = "https://github.com/meshtastic/python"; changelog = "https://github.com/meshtastic/python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };})