guix-commits
[Top][All Lists]
Advanced

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

13/18: gnu: python-pytest-remotedata: Update to 0.4.0.


From: guix-commits
Subject: 13/18: gnu: python-pytest-remotedata: Update to 0.4.0.
Date: Mon, 8 May 2023 05:51:48 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 16e83296d7876a25c86c7a63f53a3181b81ad2dd
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Apr 28 00:43:10 2023 +0100

    gnu: python-pytest-remotedata: Update to 0.4.0.
    
    * gnu/packages/python-check.scm (python-pytest-remotedata): Update to
    0.4.0.
    [build-system]: Use pyproject-build-system.
    [arguments]<phases>: Simplify by removing not required phase
    modification and use <test-flags> instead.
    [native-inputs]: Add python-setuptools-scm.
    [propagated-inputs]: Delete python-six, add python-packaging.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/python-check.scm | 25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 2c31116bd5..f0211b604b 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -735,30 +735,23 @@ were inadvertently left open at the end of a unit test.")
 (define-public python-pytest-remotedata
   (package
     (name "python-pytest-remotedata")
-    (version "0.3.2")
+    (version "0.4.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pytest-remotedata" version))
        (sha256
-        (base32 "1h6g6shib6z07azf12rnsa053470ggbd7hy3bnbw8nf3nza5h372"))))
-    (build-system python-build-system)
+        (base32 "1j5106j331cfdyfcwzrbs3yby84mq1b0kddfysq12z2dwdcca8dy"))))
+    (build-system pyproject-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             ;; Make the installed plugin discoverable by Pytest.
-             (add-installed-pythonpath inputs outputs)
-             (invoke "pytest" "-vv" "-k"
-                     (string-append
-                      ;; These tests require internet access. Disable them.
-                      "not test_default_behavior"
-                      " and not test_strict_with_decorator")))))))
+     (list
+      #:test-flags #~(list "-k" (string-append
+                                 "not test_default_behavior"
+                                 " and not test_strict_with_decorator"))))
     (native-inputs
-     (list python-pytest))
+     (list python-pytest python-setuptools-scm))
     (propagated-inputs
-     (list python-six))
+     (list python-packaging))
     (home-page "https://github.com/astropy/pytest-remotedata";)
     (synopsis "Pytest plugin for controlling remote data access")
     (description



reply via email to

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