02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
35 lines
892 B
Nix
35 lines
892 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amazon-kclpy";
|
|
version = "2.1.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "amazon-kinesis-client-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3BhccRJd6quElXZSix1aVIqWr9wdcTTziDhnIOLiPPo=";
|
|
};
|
|
|
|
# argparse is just required for python2.6
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "'argparse'," ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [ mock boto ];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Amazon Kinesis Client Library for Python";
|
|
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
|
|
license = licenses.amazonsl;
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
};
|
|
}
|