1{ stdenv, buildPythonPackage, fetchPypi, isPy27, pyserial, srp, lib }:
2
3buildPythonPackage rec {
4 pname = "digi-xbee";
5 version = "1.3.0";
6 disabled = isPy27;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "2ed798faee0853bf7ae9ca5aa4bdcbab496e3c2d56c9f0719a8e3e0d13270891";
11 };
12
13 propagatedBuildInputs = [ pyserial srp ];
14
15 # Upstream doesn't contain unit tests, only functional tests which require specific hardware
16 doCheck = false;
17
18 meta = with stdenv.lib; {
19 description = "Python library to interact with Digi International's XBee radio frequency modules";
20 homepage = "https://github.com/digidotcom/xbee-python";
21 license = licenses.mpl20;
22 maintainers = with maintainers; [ jefflabonte ];
23 };
24}