2021-01-25 08:26:54 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, isPy27, pyserial, srp, lib }:
|
2020-02-11 02:53:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "digi-xbee";
|
2021-03-19 10:00:37 +00:00
|
|
|
version = "1.4.0";
|
2020-02-11 02:53:02 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-19 10:00:37 +00:00
|
|
|
sha256 = "664737d1aab453ea40b9745f1ee1e88920acff1cce2e07c42e7f5aa64a16e6aa";
|
2020-02-11 02:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyserial srp ];
|
|
|
|
|
|
|
|
# Upstream doesn't contain unit tests, only functional tests which require specific hardware
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-03-19 19:18:11 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-11 02:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|