mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
Diff: https://github.com/aws/aws-iot-device-sdk-python-v2/compare/v1.28.0...v1.28.1 Changelog: https://github.com/aws/aws-iot-device-sdk-python-v2/releases/tag/v1.28.1
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
awscrt,
|
|
boto3,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "awsiotsdk";
|
|
version = "1.28.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-iot-device-sdk-python-v2";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-UOM3V9ABoNbX+Nr8SyJueT6tIQRLj5R1TyWFxbpylrA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace awsiot/__init__.py \
|
|
--replace-fail "__version__ = '1.0.0-dev'" "__version__ = '${finalAttrs.version}'"
|
|
'';
|
|
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|