guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-pytest-forked: Update to 1.4.0.


From: guix-commits
Subject: 01/02: gnu: python-pytest-forked: Update to 1.4.0.
Date: Tue, 12 Apr 2022 15:02:34 -0400 (EDT)

apteryx pushed a commit to branch core-updates
in repository guix.

commit 189b1c4f27b4626e50552caac9b0f08b9fad62be
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Apr 12 14:47:18 2022 -0400

    gnu: python-pytest-forked: Update to 1.4.0.
    
    * gnu/packages/check.scm (python-pytest-forked): Update to 1.4.0.
    [phases]{pretend-version}: New phase.
    {disable-setuptools-scm}: Delete phase.
    {check}: Streamline.
    [native-inputs]: Add python-setuptools-scm.
---
 gnu/packages/check.scm | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 32aedf5b6b..1182f10b09 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1491,7 +1491,7 @@ timeout has been exceeded.")
 (define-public python-pytest-forked
   (package
     (name "python-pytest-forked")
-    (version "1.3.0")
+    (version "1.4.0")
     (source
      (origin
        (method git-fetch)               ;for tests
@@ -1501,29 +1501,24 @@ timeout has been exceeded.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "1aip4kx50ynvykl7kq2mlbsi82vx701dvb8mm64lhp69bbv105rc"))))
+         "0j9bbjny7h3b4fig6l26f26c697r67mm62fzdd9m9rqyy2bmnqjs"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'disable-setuptools-scm
+         (add-before 'build 'pretend-version
            (lambda _
-             (substitute* "setup.py"
-               (("use_scm_version=True")
-                (format #f "version=~s" ,version))
-               (("setup_requires=\\['setuptools_scm'\\],.*")
-                ""))))
+             (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)))
          (replace 'check
-           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+           (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
-               (add-installed-pythonpath inputs outputs)
                (invoke "pytest" "-vv")))))))
     (native-inputs
      ;; XXX: The bootstrap variant of Pytest is used to ensure the
      ;; 'hypothesis' plugin is not in the environment (due to
      ;; <http://issues.guix.gnu.org/25235>), which would cause the test suite
      ;; to fail (see: https://github.com/pytest-dev/pytest-forked/issues/54).
-     `(("python-pytest" ,python-pytest-bootstrap)))
+     (list python-pytest-bootstrap python-setuptools-scm))
     (home-page "https://github.com/pytest-dev/pytest-forked";)
     (synopsis "Pytest plugin to run tests in isolated forked subprocesses")
     (description "This package provides a Pytest plugin which enables running



reply via email to

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