diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-11 19:57:07 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-30 16:23:52 +0000 |
| commit | 405ec135a9bd47bdadb01ce84228d2ed7e3c7c32 (patch) | |
| tree | f5c5a13af3dbb102c4be8894946ca5823373a8a9 /gnu/packages/python-check.scm | |
| parent | b6275931771fc90e29e59cac999e3de30951033c (diff) | |
gnu: Add python-approval-utilities.
* gnu/packages/python-check.scm (python-approval-utilities): New variable.
Change-Id: Ia725b06185f0a57a8ddb8a40d2ab19125c970a8e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
| -rw-r--r-- | gnu/packages/python-check.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index cf33c06952d..e15ab8e2e27 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") |
