From a56dc0bea08cdfea44a56baa771f05023f434a91 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 6 Nov 2025 10:12:32 +0000 Subject: [PATCH] gnu: python-stopit: Enable tests. * gnu/packages/python-xyz.scm (python-stopit)[source]: Switch to git-fetch providing tests. [arguments] : Use custom. Change-Id: Icfc3ecc393f4ea24e5b46f71b2a397e6d4d1f1c2 --- gnu/packages/python-xyz.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6d0bdb9744034c2545a20e9c8cf59927922c7d55..845f1296cdf0061c418a39880ae699b9a724baad 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -17155,12 +17155,17 @@ stdin/stdout/stderr.") (version "1.1.2") (source (origin - (method url-fetch) - (uri (pypi-uri "stopit" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/glenfant/stopit") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0vcrcvky249q4rbgmwf18mwmnypfk8jpn4h6knyjf86r7xc9rwzp")))) + (base32 "1g3xwd62389643hrz6bljq0ddd1yvwpfk4nrv29naf09pl1m8wmr")))) (build-system pyproject-build-system) - (arguments (list #:tests? #f)) ;there are none + (arguments + (list #:test-backend #~'custom + #:test-flags #~(list "tests.py"))) (native-inputs (list python-setuptools)) (home-page "https://pypi.python.org/pypi/stopit") (synopsis "Timeout control decorator and context managers")