1{
2 buildPythonPackage,
3 fetchPypi,
4 isPy27,
5 pyserial,
6 srp,
7 lib,
8}:
9
10buildPythonPackage rec {
11 pname = "digi-xbee";
12 version = "1.5.0";
13 format = "setuptools";
14 disabled = isPy27;
15
16 src = fetchPypi {
17 pname = "digi_xbee";
18 inherit version;
19 hash = "sha256-amUrhHIpeRHuShD0cxb2sbbRTpJQZ9/b8otsa1Bo+bI=";
20 };
21
22 propagatedBuildInputs = [
23 pyserial
24 srp
25 ];
26
27 # Upstream doesn't contain unit tests, only functional tests which require specific hardware
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "digi.xbee.models"
32 "digi.xbee.packets"
33 "digi.xbee.util"
34 "digi.xbee.comm_interface"
35 "digi.xbee.devices"
36 "digi.xbee.exception"
37 "digi.xbee.filesystem"
38 "digi.xbee.firmware"
39 "digi.xbee.io"
40 "digi.xbee.profile"
41 "digi.xbee.reader"
42 "digi.xbee.recovery"
43 "digi.xbee.sender"
44 "digi.xbee.serial"
45 "digi.xbee.xsocket"
46 ];
47
48 meta = with lib; {
49 description = "Python library to interact with Digi International's XBee radio frequency modules";
50 homepage = "https://github.com/digidotcom/xbee-python";
51 license = licenses.mpl20;
52 maintainers = with maintainers; [ jefflabonte ];
53 };
54}