Subject: [bug#58645] [PATCH 1/7]: gnu: Add pytest-7.1

From: Sharlatan Hellseher <[email-masked]>
Date: Wed, 19 Oct 2022 21:22:37 +0100

Sharlatan Hellseher (7):
  gnu: Add pytest-7.1
  gnu: pytest-astropy: Update to 0.10.0
  gnu: pytest-astropy-header: Update to 0.2.2
  gnu: astropy: Update to 5.1
  gnu: photutils: Update to 1.5.0
  gnu: astopy-healpix: Update to 0.7
  gnu: regions: Update to 0.6

 gnu/packages/astronomy.scm    | 20 ++++++++++----------
 gnu/packages/check.scm        | 23 +++++++++++++++++++++++
 gnu/packages/python-check.scm | 10 +++++-----
 3 files changed, 38 insertions(+), 15 deletions(-)

base-commit: 3bb145b6e2a8c84e7739ead9ae76dc4d42bb9850

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.
From 6c53ebd8ced19eb6a79744219d585040547cd59d Mon Sep 17 00:00:00 2001
From: Sharlatan Hellseher <[email-masked]>
Date: Tue, 18 Oct 2022 22:49:22 +0100
Subject: [PATCH 1/7] gnu: Add pytest-7.1

* gnu/packages/check.scm (python-pytest-7.1): New variable.
---
 gnu/packages/check.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 9768e5f8a4..3d320e9c70 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -39,6 +39,7 @@
 ;;; Copyright © 2021 Hugo Lecomte <[email-masked]>
 ;;; Copyright © 2022 Maxime Devos <[email-masked]>
 ;;; Copyright © 2022 David Elsing <[email-masked]>
+;;; Copyright © 2022 Sharlatan Hellseher <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1093,6 +1094,28 @@ (define-public python-pytest
 
 (define-public python-pytest-6 python-pytest)
 
+;; Astropy started using hard dependencies for Pytest 7+, which might
+;; happen for some other projects. It could be set as default in staging.
+(define-public python-pytest-7.1
+  (package
+    (inherit python-pytest)
+    (version "7.1.3")
+    (name "python-pytest")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pytest" version))
+       (sha256
+        (base32
+         "0f8c31v5r2kgjixvy267n0nhc4xsy65g3n9lz1i1377z5pn5ydjg"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments python-pytest)
+      ((#:phases phases #~%standard-phases)
+        #~(modify-phases #$phases
+            (add-before 'build 'pretend-version
+              (lambda _
+                (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))))))
+
 (define-public python-pytest-bootstrap
   (package
     (inherit python-pytest)
-- 
2.37.3