Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / amazon_kclpy / default.nix
blob44dc739f1ca8c6160feb4b5798b306f1b73f0da2
1 { lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
3 buildPythonPackage rec {
4   pname = "amazon_kclpy";
5   version = "2.0.1";
7   src = fetchFromGitHub {
8     owner = "awslabs";
9     repo = "amazon-kinesis-client-python";
10     rev = "v${version}";
11     sha256 = "13iq217fg0bxafp2rl684pg1rz4jbwid8cc8ip4rim07kzn65lbg";
12   };
14   # argparse is just required for python2.6
15   prePatch = ''
16     substituteInPlace setup.py \
17       --replace "'argparse'," ""
18   '';
20   propagatedBuildInputs =  [ mock boto ];
22   checkInputs = [ pytest ];
24   checkPhase = ''
25     ${python.interpreter} -m pytest
26   '';
28   meta = with lib; {
29     description = "Amazon Kinesis Client Library for Python";
30     homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
31     license = licenses.amazonsl;
32     maintainers = with maintainers; [ psyanticy ];
33   };