From 6e153a2c035e451eff696dcc6fc8b86e532ec53c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 2 May 2026 19:56:52 +0200 Subject: gnu: python-unix-ar: Fix tests. * gnu/packages/python-compression.scm (python-unix-ar) [source]: Switch to git-fetch. [arguments]<#:test-flags>: Refresh them. <#:phases>: Drop them. Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-compression.scm | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'gnu/packages/python-compression.scm') diff --git a/gnu/packages/python-compression.scm b/gnu/packages/python-compression.scm index 4855fa296b..0d066cca48 100644 --- a/gnu/packages/python-compression.scm +++ b/gnu/packages/python-compression.scm @@ -911,20 +911,19 @@ files (.Z), such as the ones created by Unix's shell tool compress.") (version "0.2.1") (source (origin - (method url-fetch) - (uri (pypi-uri "unix_ar" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/getninjas/unix_ar") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0kicwxsh28x8r34a7cgzv2i65gsd4qjw2vf29pwq4fpsf3n2i4xz")))) + (base32 "0bdxm7y0r7xz3d2iglxwmf1290pi3h05x3gjc0f0af01pl2j2pqn")))) (build-system pyproject-build-system) (arguments - ;; These tests have timestamp-related issues. - (list #:test-flags - #~(list "-m" "unittest" "-k" "not test_add and not test_addfile") - #:phases - #~(modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? test-flags #:allow-other-keys) - (apply invoke "python" test-flags)))))) + (list + #:test-flags + ;; These tests have timestamp-related issues. + #~(list "tests.py" "-k" "not test_add and not test_addfile"))) (native-inputs (list python-pytest python-setuptools python-wheel)) (home-page "https://github.com/getninjas/unix_ar") (synopsis "AR file handling in Python") -- cgit v1.3