1{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }: 2 3buildPythonPackage rec { 4 pname = "amazon-kclpy"; 5 version = "2.1.3"; 6 7 src = fetchFromGitHub { 8 owner = "awslabs"; 9 repo = "amazon-kinesis-client-python"; 10 rev = "refs/tags/v${version}"; 11 hash = "sha256-3BhccRJd6quElXZSix1aVIqWr9wdcTTziDhnIOLiPPo="; 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 nativeCheckInputs = [ 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}