python313Packages.awsiotsdk: migrate to finalAttrs
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "awsiotsdk";
|
||||
version = "1.28.0";
|
||||
pyproject = true;
|
||||
@@ -16,13 +16,13 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = "aws-iot-device-sdk-python-v2";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-Cs+MbI/23bPvdZNaze7ENyEZNT/AVYsPz/dEEzaAy8c=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace awsiot/__init__.py \
|
||||
--replace-fail "__version__ = '1.0.0-dev'" "__version__ = '${version}'"
|
||||
--replace-fail "__version__ = '1.0.0-dev'" "__version__ = '${finalAttrs.version}'"
|
||||
'';
|
||||
|
||||
pythonRelaxDeps = [ "awscrt" ];
|
||||
@@ -46,8 +46,8 @@ buildPythonPackage rec {
|
||||
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}";
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user