depot/third_party/nixpkgs/pkgs/development/python-modules/amazon_kclpy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
864 B
Nix

{ 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 ];
};
}