Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, awscrt, boto3, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "awsiotsdk"; version = "1.24.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "aws"; repo = "aws-iot-device-sdk-python-v2"; tag = "v${version}"; hash = "sha256-bjUppd1neOEeaY+RGcyqXpjhq+plJcopxPRLUBGhks8="; };
postPatch = '' substituteInPlace awsiot/__init__.py \ --replace-fail "__version__ = '1.0.0-dev'" "__version__ = '${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/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; };}