depot/third_party/nixpkgs/pkgs/development/python-modules/amazon-kclpy/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
mock,
boto3,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "amazon-kclpy";
version = "2.1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "awslabs";
repo = "amazon-kinesis-client-python";
rev = "refs/tags/v${version}";
hash = "sha256-kSboeg/fdg7hbiWyPzAAsYo+0vbQDfRoeJYHlrrFNrA=";
};
patches = [
(fetchpatch {
name = "remove-deprecated-boto.patch";
url = "https://github.com/awslabs/amazon-kinesis-client-python/commit/bd2c442cdd1b0e2c99d3471c1d3ffcc9161a7c42.patch";
hash = "sha256-5W0qItDGjx1F6IllzLH57XCpToKrAu9mTbzv/1wMXuY=";
})
];
build-system = [ setuptools ];
dependencies = [
mock
boto3
];
pythonImportsCheck = [ "amazon_kclpy" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Amazon Kinesis Client Library for Python";
homepage = "https://github.com/awslabs/amazon-kinesis-client-python";
license = licenses.asl20;
maintainers = with maintainers; [ psyanticy ];
broken = true;
};
}