2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amazon_kclpy";
|
2020-11-19 00:13:47 +00:00
|
|
|
version = "1.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-kinesis-client-python";
|
|
|
|
rev = "v${version}";
|
2020-11-19 00:13:47 +00:00
|
|
|
sha256 = "0jjqh9hq0hx2wr7wlqjr6cixpygragwlk4pz7rkqg2gkbhazmnq3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# argparse is just required for python2.6
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'argparse'," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ mock boto ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Amazon Kinesis Client Library for Python";
|
|
|
|
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
|
|
|
|
license = licenses.amazonsl;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|