Files
nixpkgs/pkgs/development/python-modules/digi-xbee/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
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 ];
};
}