2018-05-31 12:22:52 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amazon_kclpy";
|
2020-10-25 09:06:49 +00:00
|
|
|
version = "1.5.1";
|
2018-05-31 12:22:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-kinesis-client-python";
|
|
|
|
rev = "v${version}";
|
2020-10-25 09:06:49 +00:00
|
|
|
sha256 = "0jjqh9hq0hx2wr7wlqjr6cixpygragwlk4pz7rkqg2gkbhazmnq3";
|
2018-05-31 12:22:52 +01: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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
|
2018-05-31 12:57:50 +01:00
|
|
|
license = licenses.amazonsl;
|
2018-05-31 12:22:52 +01:00
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|