Files
nixpkgs/pkgs/development/python-modules/awsiotsdk/default.nix
T
2025-01-04 00:19:17 +01:00

52 lines
1.1 KiB
Nix

{
lib,
awscrt,
boto3,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "awsiotsdk";
version = "1.22.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aws";
repo = "aws-iot-device-sdk-python-v2";
tag = "v${version}";
hash = "sha256-Rgae9JzoW+OA4+sP/xdkmX8fbRJCJ7MqIpv81n08uXU=";
};
pythonRelaxDeps = [ "awscrt" ];
build-system = [ setuptools ];
dependencies = [ awscrt ];
nativeCheckInputs = [
boto3
pytestCheckHook
];
disabledTestPaths = [
# Those tests require a custom loader
"servicetests/"
];
pythonImportsCheck = [ "awsiot" ];
meta = {
description = "Next generation AWS IoT Client SDK for Python using the AWS Common Runtime";
homepage = "https://github.com/aws/aws-iot-device-sdk-python-v2";
changelog = "https://github.com/aws/aws-iot-device-sdk-python-v2/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}