From 4d12604f22a8d2d448fa2d177f612b3c0b0dccb2 Mon Sep 17 00:00:00 2001 From: Martin Dimov Date: Mon, 20 Sep 2021 06:49:59 +0300 Subject: [PATCH] python3-docker: update to 5.0.2 --- .../patches/disable-TCPSocketStreamTest.patch | 11 +++++++++++ srcpkgs/python3-docker/template | 8 +++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/python3-docker/patches/disable-TCPSocketStreamTest.patch diff --git a/srcpkgs/python3-docker/patches/disable-TCPSocketStreamTest.patch b/srcpkgs/python3-docker/patches/disable-TCPSocketStreamTest.patch new file mode 100644 index 0000000000..b5fbefa158 --- /dev/null +++ b/srcpkgs/python3-docker/patches/disable-TCPSocketStreamTest.patch @@ -0,0 +1,11 @@ +--- a/tests/unit/api_test.py 2021-09-23 22:16:37.092975533 +0300 ++++ b/tests/unit/api_test.py 2021-09-23 22:14:14.918720264 +0300 +@@ -474,7 +474,7 @@ + str(i).encode() for i in range(50) + ] + +- ++@pytest.mark.skip(reason="fail with: [Errno -2] Name or service not known") + class TCPSocketStreamTest(unittest.TestCase): + stdout_data = b''' + Now, those children out there, they're jumping through the diff --git a/srcpkgs/python3-docker/template b/srcpkgs/python3-docker/template index ef6c581745..739e95114a 100644 --- a/srcpkgs/python3-docker/template +++ b/srcpkgs/python3-docker/template @@ -1,14 +1,16 @@ # Template file for 'python3-docker' pkgname=python3-docker -version=4.4.4 +version=5.0.2 revision=1 wrksrc="docker-${version}" build_style=python3-module +make_check_target="tests/unit" # other tests fail due to needing a running docker daemon hostmakedepends="python3-setuptools" -depends="python3-requests python3-six python3-websocket-client python3-docker-pycreds" +depends="python3-requests python3-websocket-client python3-paramiko" +checkdepends="${depends} python3-pytest python3-pytest-timeout python3-pytest-cov" short_desc="Python3 library for the Docker Engine API" maintainer="Sergi Alvarez " license="Apache-2.0" homepage="https://github.com/docker/docker-py" distfiles="${PYPI_SITE}/d/docker/docker-${version}.tar.gz" -checksum=d3393c878f575d3a9ca3b94471a3c89a6d960b35feb92f033c0de36cc9d934db +checksum=21ec4998e90dff7a7aaaa098ca8d839c7de412b89e6f6c30908372d58fecf663