1{ stdenv, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }: 2 3buildPythonPackage rec { 4 pname = "amazon_kclpy"; 5 version = "1.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "awslabs"; 9 repo = "amazon-kinesis-client-python"; 10 rev = "v${version}"; 11 sha256 = "1qg86y9172gm5592ja7lr6w7kfnx668j99bf3ijklpk5yshxwr9m"; 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 stdenv.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}