summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-17 17:19:27 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-20 01:06:32 +0000
commit62ea5f58528ad9808f9ac99cbee1cd2ed5e286d5 (patch)
tree2990504d049c94a08cdf8de1bdb5371aaa4eb11c /gnu/packages
parentd111a6a60d3535933e4b6eba7007519b3e9d6835 (diff)
build-system: pyproject: Normalize entry point import.
The standard is using from instead of import and it indeed allows to avoid some side-effects in some cases, see https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts * guix/build/pyproject-build-system (create-entrypoints) [create-script]: Add -sP flags, improve pythonic style. * gnu/packages/video.scm (python-yewtube)[arguments]<#:phases>: Remove phase 'patch-script. Change-Id: I995454c774666ed474b2418c18ec36c4f53bf015 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/video.scm9
1 files changed, 0 insertions, 9 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 4994a33fc0f..fca60fdc46b 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -6570,15 +6570,6 @@ can also directly record to WebM or MP4 if you prefer.")
(add-before 'check 'configure-tests
(lambda _
(setenv "HOME" (getcwd))))
- ;; XXX: This can happen when some side-effects happens at
- ;; initialization. See https://codeberg.org/guix/guix/issues/1089
- (add-before 'sanity-check 'patch-script
- (lambda _
- (substitute* (string-append #$output "/bin/.yt-real")
- (("import mps_youtube as mod")
- "from mps_youtube.main import main")
- (("sys\\.exit \\(mod\\.main\\.main \\(\\)\\)")
- "sys.exit(main())"))))
(replace 'sanity-check
(lambda _
(invoke (string-append #$output "/bin/yt") "-h"))))))