From 405ec135a9bd47bdadb01ce84228d2ed7e3c7c32 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 11 Oct 2025 19:57:07 +0200 Subject: [PATCH] gnu: Add python-approval-utilities. * gnu/packages/python-check.scm (python-approval-utilities): New variable. Change-Id: Ia725b06185f0a57a8ddb8a40d2ab19125c970a8e Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-check.scm | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index cf33c06952d3068b32ef753ea16c98e01db22b36..e15ab8e2e2743b35d1ed585cb1d7c9e1bc099d34 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -155,6 +155,42 @@ reducing a number of combinations of variables into a lesser set that covers most situations.") (license license:expat))) +(define-public python-approval-utilities + (package + (name "python-approval-utilities") + (version "15.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/approvals/ApprovalTests.Python") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0mkvrx252xc140n4rrvgbqc1hrlw1gq7nx5hr1z4rxkaxvr8prkh")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ; Tests are run in the python-approvaltests package. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'setup + (lambda _ + (rename-file "setup/setup.approval_utilities.py" + "setup.py") + (substitute* "setup.py" + (("from setup_utils import get_version") + "") + (("version=get_version\\(\\),") + (format #f "version=~s," #$version)))))))) + (native-inputs (list python-setuptools)) + (home-page "https://github.com/approvals/ApprovalTests.Python") + (synopsis "Utilities for @code{python-approvaltests}") + (description + "This package provides utilities for production code that work well with +@code{python-approvaltests}.") + (license license:asl2.0))) + (define-public python-assay ;; No release yet. (let ((commit "74617d70e77afa09f58b3169cf496679ac5d5621")