diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-21 20:05:47 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 20:13:58 +0000 |
| commit | 1e5fd901fd6b293275cec07f29c677d14122b355 (patch) | |
| tree | 743d73f9a34e1715c534f6f09ec64cd80f2931a1 /gnu | |
| parent | 4897f709058fceac292d309cb131e7973a8407b2 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/nutrition.scm | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/gnu/packages/nutrition.scm b/gnu/packages/nutrition.scm index b60003ee24f..51d326a8488 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 |
