From b5b9716c08de14d667057ea61b094f14f89239ae Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 21 May 2024 13:18:44 +0900 Subject: [PATCH] python311Packages.amazon-kclpy: 2.1.3 -> 2.1.4 Diff: https://github.com/awslabs/amazon-kinesis-client-python/compare/refs/tags/v2.1.3...v2.1.4 --- .../python-modules/amazon-kclpy/default.nix | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/amazon-kclpy/default.nix b/pkgs/development/python-modules/amazon-kclpy/default.nix index 4a95e7860311..194533084a0d 100644 --- a/pkgs/development/python-modules/amazon-kclpy/default.nix +++ b/pkgs/development/python-modules/amazon-kclpy/default.nix @@ -2,45 +2,48 @@ lib, buildPythonPackage, fetchFromGitHub, - python, + fetchpatch, + setuptools, mock, - boto, - pytest, + boto3, + pytestCheckHook, }: buildPythonPackage rec { pname = "amazon-kclpy"; - version = "2.1.3"; - format = "setuptools"; + version = "2.1.4"; + pyproject = true; src = fetchFromGitHub { owner = "awslabs"; repo = "amazon-kinesis-client-python"; rev = "refs/tags/v${version}"; - hash = "sha256-3BhccRJd6quElXZSix1aVIqWr9wdcTTziDhnIOLiPPo="; + hash = "sha256-TWIGu7WuoaPhk8cz+hMXvGLIPQ5kly8aj20ZtvTZzwg="; }; - # argparse is just required for python2.6 - prePatch = '' - substituteInPlace setup.py \ - --replace "'argparse'," "" - ''; - - propagatedBuildInputs = [ - mock - boto + patches = [ + (fetchpatch { + name = "remove-deprecated-boto.patch"; + url = "https://github.com/awslabs/amazon-kinesis-client-python/commit/bd2c442cdd1b0e2c99d3471c1d3ffcc9161a7c42.patch"; + hash = "sha256-5W0qItDGjx1F6IllzLH57XCpToKrAu9mTbzv/1wMXuY="; + }) ]; - nativeCheckInputs = [ pytest ]; + build-system = [ setuptools ]; - checkPhase = '' - ${python.interpreter} -m pytest - ''; + 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.amazonsl; + license = licenses.asl20; maintainers = with maintainers; [ psyanticy ]; }; }