From 02fcd10fdb403c4c165ead89f4ee51dc112d1d4b Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 5 Nov 2025 23:58:01 +0000 Subject: [PATCH] gnu: python-glom: Switch to pyproject. * gnu/packages/python-xyz.scm (python-glom)[source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Drop all. [native-inputs]: Add python-setuptools. Change-Id: I58d68a25f91af1cb12a6fdd5a3fb029177c48f06 --- gnu/packages/python-xyz.scm | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 64e7222ae9e0c9a0d2bf89155be2a7ea75202a2f..b160c4b97b9e9b136dd70be249d7fed4ce3d8ae1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34444,26 +34444,22 @@ command-line applications. (version "24.11.0") (source (origin - (method url-fetch) - (uri (pypi-uri "glom" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/mahmoud/glom") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "09xv44h1sri9fc2sp2h3nqg8rba4p86vvimnyx5084m9b5kzj9a3")))) - (build-system python-build-system) - (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - ;; Make installed executable available for running the tests. - (setenv "PATH" - (string-append (assoc-ref outputs "out") "/bin" - ":" (getenv "PATH"))) - (invoke "pytest" "-v"))))))) + (base32 "0vjj6wjxzms947nvbxrlz2cyn0m6483p1laqvcwr8fc117nzary0")))) + (build-system pyproject-build-system) (native-inputs - (list python-pytest python-pyyaml)) + (list python-pytest + python-pyyaml + python-setuptools)) (propagated-inputs - (list python-attrs python-boltons python-face)) + (list python-attrs + python-boltons + python-face)) (home-page "https://github.com/mahmoud/glom") (synopsis "Declaratively restructure data") (description "Real applications have real data, and real data