a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
34 lines
854 B
Nix
34 lines
854 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amazon_kclpy";
|
|
version = "2.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "amazon-kinesis-client-python";
|
|
rev = "v${version}";
|
|
sha256 = "0gbpwhpd9i13vi0cch48qqrma90p230psqrkbfcjvdah69w434l4";
|
|
};
|
|
|
|
# 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 lib; {
|
|
description = "Amazon Kinesis Client Library for Python";
|
|
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
|
|
license = licenses.amazonsl;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|