Files
nixpkgs/pkgs/development/python-modules/ibmiotf/default.nix
2025-08-27 23:13:35 -07:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
iso8601,
pytz,
paho-mqtt,
requests,
requests-toolbelt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ibmiotf";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ibm-watson-iot";
repo = "iot-python";
tag = version;
hash = "sha256-/hRRYf3mY7LqZq0jq7neJRwpvgKczHNNo5bN92Rcv5M=";
};
build-system = [
setuptools
];
dependencies = [
iso8601
pytz
paho-mqtt
requests
requests-toolbelt
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests require network access and IBM Watson IoT Platform credentials
doCheck = false;
pythonImportsCheck = [ "ibmiotf" ];
meta = {
description = "Python Client for IBM Watson IoT Platform";
homepage = "https://github.com/ibm-watson-iot/iot-python";
changelog = "https://github.com/ibm-watson-iot/iot-python/releases/tag/${version}";
license = lib.licenses.epl10;
maintainers = [ lib.maintainers.jamiemagee ];
};
}