1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 7 setuptools, 8 9 urllib3, 10 deprecation, 11 paho-mqtt, 12 requests, 13 requests-unixsocket2, 14 janus, 15 pysocks, 16 typing-extensions, 17}: 18buildPythonPackage rec { 19 pname = "azure-iot-device"; 20 version = "2.14.0"; 21 pyproject = true; 22 23 disabled = pythonOlder "3.8"; 24 25 src = fetchPypi { 26 inherit version; 27 pname = "azure_iot_device"; 28 hash = "sha256-ttSNSTLCQAJXNqzlRMTnG8SaFXasmY6h3neK+CSW/84="; 29 }; 30 31 nativeBuildInputs = [ setuptools ]; 32 33 propagatedBuildInputs = [ 34 urllib3 35 deprecation 36 paho-mqtt 37 requests 38 requests-unixsocket2 39 janus 40 pysocks 41 typing-extensions 42 ]; 43 44 # Module has no tests 45 doCheck = false; 46 47 pythonImportsCheck = [ 48 "azure.iot.device" 49 "azure.iot.device.aio" 50 ]; 51 52 meta = with lib; { 53 # https://github.com/Azure/azure-iot-sdk-python/issues/1196 54 broken = lib.versionAtLeast paho-mqtt.version "2"; 55 description = "Microsoft Azure IoT Device Library for Python"; 56 homepage = "https://github.com/Azure/azure-iot-sdk-python"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ mikut ]; 59 }; 60}