From 2add6fd97d7819848daa5e7a2d5937c8136e77e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 5 Dec 2023 18:25:47 -0300 Subject: [PATCH] python3-process-tests: update to 3.0.0. --- srcpkgs/python3-process-tests/patches/fix-test.patch | 11 +++++++++++ srcpkgs/python3-process-tests/template | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/python3-process-tests/patches/fix-test.patch diff --git a/srcpkgs/python3-process-tests/patches/fix-test.patch b/srcpkgs/python3-process-tests/patches/fix-test.patch new file mode 100644 index 0000000000000..a9346a6379218 --- /dev/null +++ b/srcpkgs/python3-process-tests/patches/fix-test.patch @@ -0,0 +1,11 @@ +--- a/tests/test_process_tests.py 2023-11-01 14:34:11.000000000 -0300 ++++ b/tests/test_process_tests.py 2023-12-05 19:18:06.663214341 -0300 +@@ -30,7 +30,7 @@ + + + def test_socket(): +- with TestProcess('python', '-mhttp.server', '0') as proc: ++ with TestProcess('python', '-u', '-mhttp.server', '0') as proc: + with dump_on_error(proc.read, 'SERVER'): + wait_for_strings(proc.read, TIMEOUT, 'Serving HTTP on') + (port,) = re.match(r'Serving HTTP on .*? port (\d+) ', proc.read()).groups() diff --git a/srcpkgs/python3-process-tests/template b/srcpkgs/python3-process-tests/template index c6c71e689e764..129835d5c53e8 100644 --- a/srcpkgs/python3-process-tests/template +++ b/srcpkgs/python3-process-tests/template @@ -1,18 +1,18 @@ # Template file for 'python3-process-tests' pkgname=python3-process-tests -version=2.1.2 -revision=2 +version=3.0.0 +revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools python3-wheel" depends="python3" +checkdepends="python3-pytest" short_desc="Tools for testing processes" maintainer="Gonzalo TornarĂ­a " license="BSD-2-Clause" homepage="https://github.com/ionelmc/python-process-tests" changelog="https://raw.githubusercontent.com/ionelmc/python-process-tests/master/CHANGELOG.rst" distfiles="${PYPI_SITE}/p/process-tests/process-tests-${version}.tar.gz" -checksum=a3747ad947bdfc93e5c986bdb17a6d718f3f26e8577a0807a00962f29e26deba -make_check=no # no tests available +checksum=e5d57dea7161251e91cadb84bf3ecc85275fb121fd478e579f800777b1d424bd post_install() { vlicense LICENSE