1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 setuptools,
7 mock,
8 boto3,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "amazon-kclpy";
14 version = "3.1.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "awslabs";
19 repo = "amazon-kinesis-client-python";
20 tag = "v${version}";
21 hash = "sha256-nboEZwRlhbr176H4b6ESm3LfVZCoKz3yKrQptERsLgg=";
22 };
23
24 patches = [
25 (fetchpatch {
26 name = "remove-deprecated-boto.patch";
27 url = "https://github.com/awslabs/amazon-kinesis-client-python/commit/bd2c442cdd1b0e2c99d3471c1d3ffcc9161a7c42.patch";
28 hash = "sha256-5W0qItDGjx1F6IllzLH57XCpToKrAu9mTbzv/1wMXuY=";
29 })
30 ];
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 mock
36 boto3
37 ];
38
39 pythonImportsCheck = [ "amazon_kclpy" ];
40
41 nativeCheckInputs = [ pytestCheckHook ];
42
43 meta = with lib; {
44 description = "Amazon Kinesis Client Library for Python";
45 homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ psyanticy ];
48 broken = true;
49 };
50}