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";
|
2021-06-19 02:34:32 +01:00
|
|
|
version = "2.0.2";
|
2018-05-31 12:22:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-kinesis-client-python";
|
|
|
|
rev = "v${version}";
|
2021-06-19 02:34:32 +01:00
|
|
|
sha256 = "12yxcwml6g86sv1pj3wc2k97md9szdj6xx07qwri1mr9bdkzw7rv";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|