Merge pull request #41310 from Assassinkin/aws_kinesis

pythonPackages.amazon_kclpy: init at 1.5.0
This commit is contained in:
Frederik Rietdijk 2018-06-01 14:38:55 +02:00 committed by GitHub
commit 104994fdc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
buildPythonPackage rec {
pname = "amazon_kclpy";
version = "1.5.0";
src = fetchFromGitHub {
owner = "awslabs";
repo = "amazon-kinesis-client-python";
rev = "v${version}";
sha256 = "1qg86y9172gm5592ja7lr6w7kfnx668j99bf3ijklpk5yshxwr9m";
};
# 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 ];
};
}

View File

@ -201,6 +201,8 @@ in {
# packages defined elsewhere
amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };
backports_csv = callPackage ../development/python-modules/backports_csv {};
bap = callPackage ../development/python-modules/bap {