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