Loading pkgs/development/python-modules/amazon-kclpy/default.nix +21 −18 Original line number Diff line number Diff line Loading @@ -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'," "" ''; 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 ]; propagatedBuildInputs = [ dependencies = [ mock boto boto3 ]; nativeCheckInputs = [ pytest ]; pythonImportsCheck = [ "amazon_kclpy" ]; checkPhase = '' ${python.interpreter} -m pytest ''; 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 ]; }; } Loading
pkgs/development/python-modules/amazon-kclpy/default.nix +21 −18 Original line number Diff line number Diff line Loading @@ -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'," "" ''; 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 ]; propagatedBuildInputs = [ dependencies = [ mock boto boto3 ]; nativeCheckInputs = [ pytest ]; pythonImportsCheck = [ "amazon_kclpy" ]; checkPhase = '' ${python.interpreter} -m pytest ''; 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 ]; }; }