35 lines
864 B
Nix
35 lines
864 B
Nix
{ stdenv, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amazon_kclpy";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "amazon-kinesis-client-python";
|
|
rev = "v${version}";
|
|
sha256 = "13iq217fg0bxafp2rl684pg1rz4jbwid8cc8ip4rim07kzn65lbg";
|
|
};
|
|
|
|
# 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 ];
|
|
};
|
|
}
|