1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "awsiotpythonsdk";
11 version = "1.5.5";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "aws";
18 repo = "aws-iot-device-sdk-python";
19 tag = "v${version}";
20 hash = "sha256-mgf2hb7dWOGzaHnOQDz7GJeQV3Pa0X56X8nC15Tq0dY=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 # Module has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "AWSIoTPythonSDK" ];
29
30 meta = with lib; {
31 description = "Python SDK for connecting to AWS IoT";
32 homepage = "https://github.com/aws/aws-iot-device-sdk-python";
33 changelog = "https://github.com/aws/aws-iot-device-sdk-python/releases/tag/${src.tag}";
34 license = with licenses; [ asl20 ];
35 maintainers = with maintainers; [ fab ];
36 };
37}