depot/third_party/nixpkgs/pkgs/development/python-modules/azure-iot-device/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

58 lines
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 = with lib; {
description = "Microsoft Azure IoT Device Library for Python";
homepage = "https://github.com/Azure/azure-iot-sdk-python";
license = licenses.mit;
maintainers = with maintainers; [ mikut ];
};
}