guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: gnu: python-traittypes: Simplify package.


From: guix-commits
Subject: 04/04: gnu: python-traittypes: Simplify package.
Date: Tue, 6 Feb 2024 16:20:45 -0500 (EST)

sharlatan pushed a commit to branch master
in repository guix.

commit 5729b2b3521aa9d4a88c8ac680bd37ffe3b3acc6
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Tue Feb 6 21:11:40 2024 +0000

    gnu: python-traittypes: Simplify package.
    
    * gnu/packages/python-science.scm (python-traittypes) [build-system]:
    Swap to pyproject-build-system.
    [arguments]: Move excluded tests to <#:test-flags>. Use standard 'check
    phase.
    
    Change-Id: I4cab0c94036a7e5f0851edf2833dfac2f675d2a0
---
 gnu/packages/python-science.scm | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 30547e9cbe..2e0a17aac7 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -2153,16 +2153,11 @@ to do spectral analysis in Python.")
        (uri (pypi-uri "traittypes" version))
        (sha256
         (base32 "1mlv93irdrgxrhnhq3ksi9585d55bpi4mv9dha4p8gkkjiia4vxy"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               ;; This one test fails because it doesn't raise an expected
-               ;; exception.
-               (invoke "pytest" "-vv" "-k" "not test_bad_values")))))))
+     (list
+      ;; This one test fails because it doesn't raise an expected exception.
+      #:test-flags #~(list "-k" "not test_bad_values")))
     (propagated-inputs (list python-traitlets))
     (native-inputs
      (list python-numpy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]