Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, awscrt, boto3, buildPythonPackage, fetchFromGitHub, pytestCheckHook, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "awsiotsdk"; version = "1.28.2"; pyproject = true;
src = fetchFromGitHub { owner = "aws"; repo = "aws-iot-device-sdk-python-v2"; tag = "v${finalAttrs.version}"; hash = "sha256-uhuKHn2aCqdJ1mN7Rp9/RNEuAv9STtgqpjF3Cjvw2pg="; };
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 ]; };})