1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
awscrt,
|
|
boto3,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "awsiotsdk";
|
|
version = "1.27.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aws";
|
|
repo = "aws-iot-device-sdk-python-v2";
|
|
tag = "v${version}";
|
|
hash = "sha256-CafecTMRNIKQ2FB13SLJwtYwysNMG5DYl2xfHnejApU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|