python311Packages.amazon-kclpy: 2.1.3 -> 2.1.4

Diff:
https://github.com/awslabs/amazon-kinesis-client-python/compare/refs/tags/v2.1.3...v2.1.4
This commit is contained in:
natsukium
2024-05-23 01:10:25 +09:00
parent 68cd833601
commit b5b9716c08
@@ -2,45 +2,48 @@
lib,
buildPythonPackage,
fetchFromGitHub,
python,
fetchpatch,
setuptools,
mock,
boto,
pytest,
boto3,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "amazon-kclpy";
version = "2.1.3";
format = "setuptools";
version = "2.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "awslabs";
repo = "amazon-kinesis-client-python";
rev = "refs/tags/v${version}";
hash = "sha256-3BhccRJd6quElXZSix1aVIqWr9wdcTTziDhnIOLiPPo=";
hash = "sha256-TWIGu7WuoaPhk8cz+hMXvGLIPQ5kly8aj20ZtvTZzwg=";
};
# argparse is just required for python2.6
prePatch = ''
substituteInPlace setup.py \
--replace "'argparse'," ""
'';
propagatedBuildInputs = [
mock
boto
patches = [
(fetchpatch {
name = "remove-deprecated-boto.patch";
url = "https://github.com/awslabs/amazon-kinesis-client-python/commit/bd2c442cdd1b0e2c99d3471c1d3ffcc9161a7c42.patch";
hash = "sha256-5W0qItDGjx1F6IllzLH57XCpToKrAu9mTbzv/1wMXuY=";
})
];
nativeCheckInputs = [ pytest ];
build-system = [ setuptools ];
checkPhase = ''
${python.interpreter} -m pytest
'';
dependencies = [
mock
boto3
];
pythonImportsCheck = [ "amazon_kclpy" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Amazon Kinesis Client Library for Python";
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
license = licenses.amazonsl;
license = licenses.asl20;
maintainers = with maintainers; [ psyanticy ];
};
}