2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy27,
|
|
|
|
pyserial,
|
|
|
|
srp,
|
|
|
|
lib,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "digi-xbee";
|
2021-12-24 04:21:11 +00:00
|
|
|
version = "1.4.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-24 04:21:11 +00:00
|
|
|
sha256 = "3b10e749431f406d80c189d872f4673b8d3cd510f7b411f817780a0e72499cd2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
srp
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Upstream doesn't contain unit tests, only functional tests which require specific hardware
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"digi.xbee.models"
|
|
|
|
"digi.xbee.packets"
|
|
|
|
"digi.xbee.util"
|
|
|
|
"digi.xbee.comm_interface"
|
|
|
|
"digi.xbee.devices"
|
|
|
|
"digi.xbee.exception"
|
|
|
|
"digi.xbee.filesystem"
|
|
|
|
"digi.xbee.firmware"
|
|
|
|
"digi.xbee.io"
|
|
|
|
"digi.xbee.profile"
|
|
|
|
"digi.xbee.reader"
|
|
|
|
"digi.xbee.recovery"
|
|
|
|
"digi.xbee.sender"
|
|
|
|
"digi.xbee.serial"
|
|
|
|
"digi.xbee.xsocket"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library to interact with Digi International's XBee radio frequency modules";
|
|
|
|
homepage = "https://github.com/digidotcom/xbee-python";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jefflabonte ];
|
|
|
|
};
|
|
|
|
}
|