[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0.
From: |
Sharlatan Hellseher |
Subject: |
[bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0. |
Date: |
Sun, 21 Apr 2024 00:21:54 +0100 |
* gnu/packages/python-check.scm (python-pytest-socket): Update to 0.7.0.
Change-Id: I879064eba2f4d93d2e2b519ebdf613685d5b5df9
---
gnu/packages/python-check.scm | 31 +++++++++++++++++++++++--------
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b39709d960..777791cb6c 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -420,13 +420,17 @@ (define-public python-vcrpy
(define-public python-pytest-socket
(package
(name "python-pytest-socket")
- (version "0.5.1")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "pytest-socket" version))
- (sha256
- (base32
- "1dkr86nxkxc0ka3rdnpmk335m8gl1zh1sy8i7w4w1jsidbf82jvw"))))
+ (version "0.7.0")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/miketheman/pytest-socket")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1m6s07gvljq82hiajzy1v123kpkciziiqdjqfnas169rmzg0bmnp"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -440,7 +444,18 @@ (define-public python-pytest-socket
" and not test_httpx_fails"
" and not test_disabled_urllib_fails"
" and not test_urllib_succeeds_by_default"
- " and not test_enabled_urllib_succeeds"))))
+ " and not test_enabled_urllib_succeeds"
+ " and not
test_single_cli_arg_connect_disabled_hostname_resolved"))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; See <https://github.com/miketheman/pytest-socket/issues/308>
+ (add-after 'unpack 'fix-tests
+ (lambda _
+ (substitute* (list "tests/test_async.py"
+ "tests/test_socket.py"
+ "tests/test_precedence.py")
+ (("from tests.common import assert_socket_blocked")
+ "from common import assert_socket_blocked")))))))
(native-inputs (list python-httpx
python-poetry-core
python-pypa-build
--
2.41.0
- [bug#70489] [PATCH 22/47] gnu: python-synphot: Update to 1.4.0., (continued)
- [bug#70489] [PATCH 22/47] gnu: python-synphot: Update to 1.4.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 23/47] gnu: python-tweakwcs: Adjust indentation., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 32/47] gnu: python-sunpy: Update to 5.1.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 27/47] gnu: python-gatspy: Refresh package style., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 33/47] gnu: python-astroplan: Update to 0.10., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 31/47] gnu: python-skyfield: Enable tests., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 34/47] gnu: python-rad: Update to 0.19.2., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 30/47] gnu: Add python-assay., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 37/47] gnu: python-casa-formats-io: Update to 0.3.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 24/47] gnu: python-tweakwcs: Update to 0.8.7., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 05/47] gnu: python-pytest-socket: Update to 0.7.0.,
Sharlatan Hellseher <=
- [bug#70489] [PATCH 26/47] gnu: python-ginga: Set HOME for sanity check., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 25/47] gnu: python-ginga: Update to 5.0.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 29/47] gnu: python-bayesicfitting: Update to 3.2.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 36/47] gnu: python-roman-datamodels: Update to 0.19.1., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 38/47] gnu: python-specutils: Update to 1.14.0., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 35/47] gnu: python-regions: Update to 0.9., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 39/47] gnu: python-photutils: Update to 1.12., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 43/47] gnu: python-crds: Update to 11.17.20., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 44/47] gnu: python-stsci-stimage: Update to 0.2.8., Sharlatan Hellseher, 2024/04/20
- [bug#70489] [PATCH 41/47] gnu: python-reproject: Enable tests., Sharlatan Hellseher, 2024/04/20