1{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }: 2 3buildPythonPackage rec { 4 pname = "amazon_kclpy"; 5 version = "2.0.6"; 6 7 src = fetchFromGitHub { 8 owner = "awslabs"; 9 repo = "amazon-kinesis-client-python"; 10 rev = "v${version}"; 11 sha256 = "0gbpwhpd9i13vi0cch48qqrma90p230psqrkbfcjvdah69w434l4"; 12 }; 13 14 # argparse is just required for python2.6 15 prePatch = '' 16 substituteInPlace setup.py \ 17 --replace "'argparse'," "" 18 ''; 19 20 propagatedBuildInputs = [ mock boto ]; 21 22 checkInputs = [ pytest ]; 23 24 checkPhase = '' 25 ${python.interpreter} -m pytest 26 ''; 27 28 meta = with lib; { 29 description = "Amazon Kinesis Client Library for Python"; 30 homepage = "https://github.com/awslabs/amazon-kinesis-client-python"; 31 license = licenses.amazonsl; 32 maintainers = with maintainers; [ psyanticy ]; 33 }; 34}