{ lib , buildPythonPackage , dotmap , fetchFromGitHub , pexpect , protobuf , pygatt , pypubsub , pyqrcode , pyserial , pytestCheckHook , pythonOlder , pyyaml , tabulate , timeago }: buildPythonPackage rec { pname = "meshtastic"; version = "1.2.46"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "meshtastic"; repo = "Meshtastic-python"; rev = version; sha256 = "sha256-XNoAt0R3Jt8i0erovwHBIJ3l9bY5po2UjRl/uzGBs9k="; }; propagatedBuildInputs = [ dotmap pexpect protobuf pygatt pypubsub pyqrcode pyserial pyyaml tabulate timeago ]; checkInputs = [ pytestCheckHook ]; preCheck = '' export PATH="$PATH:$out/bin"; ''; pythonImportsCheck = [ "meshtastic" ]; meta = with lib; { description = "Python API for talking to Meshtastic devices"; homepage = "https://meshtastic.github.io/Meshtastic-python/"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; }