Files
nixpkgs/pkgs/development/python-modules/azure-iot-device/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

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
urllib3,
deprecation,
paho-mqtt,
requests,
requests-unixsocket2,
janus,
pysocks,
typing-extensions,
}:
buildPythonPackage rec {
pname = "azure-iot-device";
version = "2.14.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit version;
pname = "azure_iot_device";
hash = "sha256-ttSNSTLCQAJXNqzlRMTnG8SaFXasmY6h3neK+CSW/84=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
urllib3
deprecation
paho-mqtt
requests
requests-unixsocket2
janus
pysocks
typing-extensions
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"azure.iot.device"
"azure.iot.device.aio"
];
meta = {
# https://github.com/Azure/azure-iot-sdk-python/issues/1196
broken = lib.versionAtLeast paho-mqtt.version "2";
description = "Microsoft Azure IoT Device Library for Python";
homepage = "https://github.com/Azure/azure-iot-sdk-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mikut ];
};
}