1{
2 lib,
3 azure-common,
4 azure-mgmt-core,
5 buildPythonPackage,
6 fetchPypi,
7 isodate,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "azure-mgmt-iothub";
14 version = "4.0.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.11";
18
19 src = fetchPypi {
20 pname = "azure_mgmt_iothub";
21 inherit version;
22 hash = "sha256-B/Jb1vZzdLqxfMEZL5+SGzUONWAlHxkGnmZlg1Qe1Ng=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 azure-common
29 azure-mgmt-core
30 isodate
31 ];
32
33 # Module has no tests
34 doCheck = false;
35
36 pythonImportsCheck = [ "azure.mgmt.iothub" ];
37
38 meta = with lib; {
39 description = "This is the Microsoft Azure IoTHub Management Client Library";
40 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/iothub/azure-mgmt-iothub";
41 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-iothub_${version}/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ maxwilson ];
44 };
45}