mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
pythonPackage.amazon_kclpy: init at 1.5.0
This commit is contained in:
parent
7edfd9dbe1
commit
c4900b2fce
34
pkgs/development/python-modules/amazon_kclpy/default.nix
Normal file
34
pkgs/development/python-modules/amazon_kclpy/default.nix
Normal 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.asl;
|
||||
maintainers = with maintainers; [ psyanticy ];
|
||||
};
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue