2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
2018-05-31 12:22:52 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amazon_kclpy";
|
2020-11-29 14:04:22 +00:00
|
|
|
version = "2.0.1";
|
2018-05-31 12:22:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-kinesis-client-python";
|
|
|
|
rev = "v${version}";
|
2020-11-29 14:04:22 +00:00
|
|
|
sha256 = "13iq217fg0bxafp2rl684pg1rz4jbwid8cc8ip4rim07kzn65lbg";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-31 12:22:52 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|