[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/244: gnu: python-hy: Report version.
From: |
guix-commits |
Subject: |
24/244: gnu: python-hy: Report version. |
Date: |
Wed, 12 Apr 2023 08:47:14 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit cd451a3971d23c7b08f9e45f6fbde64390db0a03
Author: Jack Hill <jackhill@jackhill.us>
AuthorDate: Thu Mar 16 18:24:23 2023 -0400
gnu: python-hy: Report version.
* gnu/packages/python-xyz.scm (python-hy)[arguments]<#:phases>: Add
set-version and remove-installed-build-scripts.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eeeba5c167..3418af714e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -58,7 +58,7 @@
;;; Copyright © 2015, 2018 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2019, 2020 Brett Gilio <brettg@gnu.org>
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
-;;; Copyright © 2019 Jack Hill <jackhill@jackhill.us>
+;;; Copyright © 2019, 2023 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2019, 2020, 2021, 2022 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019, 2020, 2021, 2022 Pierre Langlois
<pierre.langlois@gmx.com>
@@ -15309,17 +15309,29 @@ with a new public API, and RPython support.")
(base32 "1czhh7s81sg0nrnf4zv0ydqi4f7s6sywf4ks4fd59vpx441ca39v"))))
(build-system python-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "pytest" "-k"
- (string-append ; skip some failed tests
- "not test_sys_executable"
- " and not test_circular_macro_require"
- " and not test_macro_require"
- " and not test_requires_pollutes_core"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Hy includes a script that writes a version.py file that Hy uses to
+ ;; report its version. That script uses information from the git
+ ;; repository or the HY_VERSION environment variable. Therefore,
+ ;; these phases set HY_VERSION and then remove the support scripts
+ ;; which get installed in the root of the output.
+ (add-after 'unpack 'set-version
+ (lambda _
+ (setenv "HY_VERSION" #$version)))
+ (add-after 'install 'remove-installed-build-scripts
+ (lambda _
+ (delete-file-recursively (string-append #$output
"/get_version"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest" "-k"
+ (string-append ; skip some failed tests
+ "not test_sys_executable"
+ " and not test_circular_macro_require"
+ " and not test_macro_require"
+ " and not test_requires_pollutes_core"))))))))
(native-inputs
(list python-pytest-7.1 python-wheel))
(propagated-inputs
- 18/244: gnu: Add nntpit., (continued)
- 18/244: gnu: Add nntpit., guix-commits, 2023/04/12
- 26/244: gnu: emacs-ement: Update to 0.8.1., guix-commits, 2023/04/12
- 15/244: gnu: Add ruby-enumerable-statistics., guix-commits, 2023/04/12
- 10/244: services: replace bare serializers with (serializer ...), guix-commits, 2023/04/12
- 12/244: services: mpd: Use proper records for user and group fields., guix-commits, 2023/04/12
- 14/244: gnu: Add mairix., guix-commits, 2023/04/12
- 17/244: gnu: Add youplot., guix-commits, 2023/04/12
- 19/244: gnu: ytfzf: Replace YOUTUBE-DL by YT-DLP., guix-commits, 2023/04/12
- 20/244: gnu: Add font-chivo., guix-commits, 2023/04/12
- 23/244: gnu: python-hy: Update to 0.26.0., guix-commits, 2023/04/12
- 24/244: gnu: python-hy: Report version.,
guix-commits <=
- 31/244: gnu: libjxr: Fix cross-compilation., guix-commits, 2023/04/12
- 30/244: services: xvnc: Do not create a regular HOME directory for xvnc user., guix-commits, 2023/04/12
- 37/244: gnu: bambam: Update to 1.2.1., guix-commits, 2023/04/12
- 34/244: gnu: Add dool., guix-commits, 2023/04/12
- 33/244: gnu: a2ps: Improve package style., guix-commits, 2023/04/12
- 38/244: gnu: thermald: Update to 2.5.2., guix-commits, 2023/04/12
- 44/244: gnu: emacs-org: Update to 9.6.3., guix-commits, 2023/04/12
- 40/244: gnu: qpwgraph: Update to 0.4.2., guix-commits, 2023/04/12
- 41/244: gnu: uwufetch: Update to 2.1., guix-commits, 2023/04/12
- 22/244: gnu: endless-sky: Update to 0.10.0., guix-commits, 2023/04/12