diff options
| author | Ian Eure <ian@retrospec.tv> | 2026-08-30 00:29:49 -0700 |
|---|---|---|
| committer | Ian Eure <ian@retrospec.tv> | 2026-08-30 00:34:35 -0700 |
| commit | 6d10a594ac75999036747796036cda26e857ea02 (patch) | |
| tree | c21100395bebc7397cab406ef19f6fef9ffbe8d8 /gnu | |
| parent | 3281477da463c6f86daf63595bf446c50107a5a0 (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c992392bb6e..60fe3b249b2 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -43163,9 +43163,10 @@ intuitive, standard compliant Python profiler.") | |||
| 43163 | (name "python-yapsy") | 43163 | (name "python-yapsy") |
| 43164 | ;; 1.12.2 (2019-06-28), the latest changes provide support for Python | 43164 | ;; 1.12.2 (2019-06-28), the latest changes provide support for Python |
| 43165 | ;; 3.12+; move back to git tag when released. | 43165 | ;; 3.12+; move back to git tag when released. |
| 43166 | (properties '((commit . "6b487b04affb19ab40adbbc87827668bea0abcee") | 43166 | (properties '((base-version . "1.12.2") |
| 43167 | (commit . "6b487b04affb19ab40adbbc87827668bea0abcee") | ||
| 43167 | (revision . "0"))) | 43168 | (revision . "0"))) |
| 43168 | (version (git-version "1.12.2" | 43169 | (version (git-version (assoc-ref properties 'base-version) |
| 43169 | (assoc-ref properties 'revision) | 43170 | (assoc-ref properties 'revision) |
| 43170 | (assoc-ref properties 'commit))) | 43171 | (assoc-ref properties 'commit))) |
| 43171 | (source | 43172 | (source |
| @@ -43178,6 +43179,18 @@ intuitive, standard compliant Python profiler.") | |||
| 43178 | (sha256 | 43179 | (sha256 |
| 43179 | (base32 "046c505kwdbp4vhqjrc5xpdrji7lyxv11nzq9yn20c2q1186b9j0")))) | 43180 | (base32 "046c505kwdbp4vhqjrc5xpdrji7lyxv11nzq9yn20c2q1186b9j0")))) |
| 43180 | (build-system pyproject-build-system) | 43181 | (build-system pyproject-build-system) |
| 43182 | (arguments | ||
| 43183 | (list | ||
| 43184 | #:phases | ||
| 43185 | #~(modify-phases %standard-phases | ||
| 43186 | (add-after 'unpack 'change-source-dir | ||
| 43187 | (lambda _ | ||
| 43188 | (chdir "package"))) | ||
| 43189 | (add-after 'change-source-dir 'patch-version | ||
| 43190 | (lambda _ | ||
| 43191 | (substitute* "yapsy/__init__.py" | ||
| 43192 | (("__version__=\"2.0.0\"") | ||
| 43193 | (format #nil "__version__=\"~a\"" #$(assoc-ref properties 'base-version))))))))) | ||
| 43181 | (native-inputs | 43194 | (native-inputs |
| 43182 | (list python-pytest python-setuptools)) | 43195 | (list python-pytest python-setuptools)) |
| 43183 | (home-page "https://yapsy.sourceforge.net") | 43196 | (home-page "https://yapsy.sourceforge.net") |
