2021-01-16 23:23:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-19 19:19:16 +00:00
|
|
|
, pythonOlder
|
2021-01-16 23:23:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "AWSIoTPythonSDK";
|
2022-01-19 11:41:39 +00:00
|
|
|
version = "1.5.0";
|
2022-01-19 19:19:16 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-16 23:23:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aws";
|
|
|
|
repo = "aws-iot-device-sdk-python";
|
|
|
|
rev = "v${version}";
|
2022-01-19 11:41:39 +00:00
|
|
|
sha256 = "0bmvwv471mvlwj2rfz08j9qvzsp4vyjz67cbzkvsy6kmihx3wfqh";
|
2021-01-16 23:23:29 +00:00
|
|
|
};
|
|
|
|
|
2022-01-19 19:19:16 +00:00
|
|
|
# Module has no tests
|
2021-01-16 23:23:29 +00:00
|
|
|
doCheck = false;
|
2022-01-19 19:19:16 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"AWSIoTPythonSDK"
|
|
|
|
];
|
2021-01-16 23:23:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SDK for connecting to AWS IoT";
|
|
|
|
homepage = "https://github.com/aws/aws-iot-device-sdk-python";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|