guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 1e5fd901fd6b293275cec07f29c677d14122b355
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Dec 21 20:05:47 2025 +0100

    gnu: python-scrape-schema-recipe: Update to 0.2.2.
    
    * gnu/packages/nutrition.scm (python-scrape-schema-recipe): Update to 0.2.2.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Replace 'check phase replacement by
    'configure-tests phase.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: I03b01d1c723ee91e59e4ec5d885225a7ba704ee0
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/nutrition.scm | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/nutrition.scm b/gnu/packages/nutrition.scm
index b60003ee24..51d326a848 100644
--- a/gnu/packages/nutrition.scm
+++ b/gnu/packages/nutrition.scm
@@ -27,6 +27,7 @@
   #:use-module (guix licenses)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
+  #:use-module (guix build-system pyproject)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
   #:use-module (gnu packages check)
@@ -48,30 +49,28 @@
 (define-public python-scrape-schema-recipe
   (package
     (name "python-scrape-schema-recipe")
-    (version "0.2.0")
-    ;; The PyPI archive lacks a VERSION file as well as the test suite.
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url 
"https://github.com/micahcochran/scrape-schema-recipe";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "044c6qwhb4c710ksgiw29cd0qcp84h1m4y8yr2g4c8vdlm3kkqh5"))))
-    (build-system python-build-system)
+    (version "0.2.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/micahcochran/scrape-schema-recipe";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1yrqawnxp1k9ps0c920qjbbaxpmz3cf8bzyjs1kimvlxym78b614"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
       #:phases
       #~(modify-phases %standard-phases
-          (replace 'check
+          (add-before 'check 'configure-tests
             (lambda* (#:key tests? #:allow-other-keys)
               (when tests?
                 (substitute* "test_scrape.py"
                   (("DISABLE_NETWORK_TESTS = False")
-                   "DISABLE_NETWORK_TESTS = True"))
-                (invoke "pytest" "-vv")))))))
-    (native-inputs (list python-pytest))
+                   "DISABLE_NETWORK_TESTS = True"))))))))
+    (native-inputs (list python-pytest python-setuptools))
     (propagated-inputs
      (list python-extruct
            python-importlib-resources

Reply via email to