This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 6d10a594ac gnu: python-yapsy: Fix package.
6d10a594ac is described below
commit 6d10a594ac75999036747796036cda26e857ea02
Author: Ian Eure <[email protected]>
AuthorDate: Sun Aug 30 00:29:49 2026 -0700
gnu: python-yapsy: Fix package.
This package has been broken due to having a `package' directory, while the
build occurs in its parent. This casuses yapsy to be be placed on
`sys.path'
as `package', causing `import yapsy' to fail.
Fixes #10908, re #10008.
* gnu/packages/python-xyz.scm (python-yapsy): [properties] Add version.
[phases] Change into source dir after unpacking.
[phases] Correct package version.
Change-Id: I86f55a4089e182e60e2734649a59bcdb15129987
---
gnu/packages/python-xyz.scm | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c992392bb6..60fe3b249b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -43163,9 +43163,10 @@ intuitive, standard compliant Python profiler.")
(name "python-yapsy")
;; 1.12.2 (2019-06-28), the latest changes provide support for Python
;; 3.12+; move back to git tag when released.
- (properties '((commit . "6b487b04affb19ab40adbbc87827668bea0abcee")
+ (properties '((base-version . "1.12.2")
+ (commit . "6b487b04affb19ab40adbbc87827668bea0abcee")
(revision . "0")))
- (version (git-version "1.12.2"
+ (version (git-version (assoc-ref properties 'base-version)
(assoc-ref properties 'revision)
(assoc-ref properties 'commit)))
(source
@@ -43178,6 +43179,18 @@ intuitive, standard compliant Python profiler.")
(sha256
(base32 "046c505kwdbp4vhqjrc5xpdrji7lyxv11nzq9yn20c2q1186b9j0"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'change-source-dir
+ (lambda _
+ (chdir "package")))
+ (add-after 'change-source-dir 'patch-version
+ (lambda _
+ (substitute* "yapsy/__init__.py"
+ (("__version__=\"2.0.0\"")
+ (format #nil "__version__=\"~a\"" #$(assoc-ref properties
'base-version)))))))))
(native-inputs
(list python-pytest python-setuptools))
(home-page "https://yapsy.sourceforge.net")