2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dotmap
|
|
|
|
, fetchPypi
|
|
|
|
, pexpect
|
|
|
|
, protobuf
|
|
|
|
, pygatt
|
|
|
|
, pypubsub
|
|
|
|
, pyqrcode
|
|
|
|
, pyserial
|
|
|
|
, pythonOlder
|
|
|
|
, tabulate
|
|
|
|
, timeago
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meshtastic";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.2.44";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "f99e076dde0db86a5ba734b48257ffc7355a2b4729cea1ff5cd7638ca93dbd90";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dotmap
|
|
|
|
pexpect
|
|
|
|
protobuf
|
|
|
|
pygatt
|
|
|
|
pypubsub
|
|
|
|
pyqrcode
|
|
|
|
pyserial
|
|
|
|
tabulate
|
|
|
|
timeago
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project only provides PyPI releases which don't contain the tests
|
|
|
|
# https://github.com/meshtastic/Meshtastic-python/issues/86
|
|
|
|
doCheck = false;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"meshtastic"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|