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