From 1e5fd901fd6b293275cec07f29c677d14122b355 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 21 Dec 2025 20:05:47 +0100 Subject: [PATCH] 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 --- 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 b60003ee24f9650daff31139e68491eefb19c3f2..51d326a84880d77b4bc2bb70135610ba9e7d0b29 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