diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-29 08:53:53 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 13:27:01 +0000 |
| commit | 4e0906e98cf33eaaf4b9683885d0bea8d32a9304 (patch) | |
| tree | 926731522995a39a34730e6c67f913c13f8c4f95 /gnu | |
| parent | 82dd94b3f92d0cda05b9d69b01b081cd8a5a0db6 (diff) | |
gnu: you-get: Switch to pyproject.
* gnu/packages/video.scm (you-get): Run guix style.
[build-system]: Switch to pyproject-build-system.
[arguments]: Re-order keywords. Use gexps.
[native-inputs]: Add python-setuptools.
Change-Id: I798ea8a3df60572e80ebd87460d7f6fcdb45d0d4
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/video.scm | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index dbda7468e68..82f30c14745 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm | |||
| @@ -3278,32 +3278,33 @@ original project.") | |||
| 3278 | (package | 3278 | (package |
| 3279 | (name "you-get") | 3279 | (name "you-get") |
| 3280 | (version "0.4.1555") | 3280 | (version "0.4.1555") |
| 3281 | (source (origin | 3281 | (source |
| 3282 | (method git-fetch) | 3282 | (origin |
| 3283 | (uri (git-reference | 3283 | (method git-fetch) |
| 3284 | (url "https://github.com/soimort/you-get") | 3284 | (uri (git-reference |
| 3285 | (commit (string-append "v" version)))) | 3285 | (url "https://github.com/soimort/you-get") |
| 3286 | (file-name (git-file-name name version)) | 3286 | (commit (string-append "v" version)))) |
| 3287 | (sha256 | 3287 | (file-name (git-file-name name version)) |
| 3288 | (base32 | 3288 | (sha256 |
| 3289 | "0gn86i6nfsw395r9a3i88nv2g08s5bgjps7w4qawb9gvk4h7zqap")))) | 3289 | (base32 "0gn86i6nfsw395r9a3i88nv2g08s5bgjps7w4qawb9gvk4h7zqap")))) |
| 3290 | (build-system python-build-system) | 3290 | (build-system pyproject-build-system) |
| 3291 | (inputs | ||
| 3292 | (list ffmpeg)) ; for multi-part and >=1080p videos | ||
| 3293 | (arguments | 3291 | (arguments |
| 3294 | `(#:phases | 3292 | (list |
| 3295 | (modify-phases %standard-phases | 3293 | #:tests? #f ;XXX some tests need Internet access |
| 3296 | (add-after 'unpack 'qualify-input-references | 3294 | #:phases |
| 3297 | ;; Explicitly invoke the input ffmpeg, instead of whichever one | 3295 | #~(modify-phases %standard-phases |
| 3298 | ;; happens to be in the user's $PATH at run time. | 3296 | (add-after 'unpack 'qualify-input-references |
| 3299 | (lambda* (#:key inputs #:allow-other-keys) | 3297 | ;; Explicitly invoke the input ffmpeg, instead of whichever one |
| 3300 | (let ((ffmpeg (search-input-file inputs "/bin/ffmpeg"))) | 3298 | ;; happens to be in the user's $PATH at run time. |
| 3301 | (substitute* "src/you_get/processor/ffmpeg.py" | 3299 | (lambda* (#:key inputs #:allow-other-keys) |
| 3302 | ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the | 3300 | (let ((ffmpeg (search-input-file inputs "/bin/ffmpeg"))) |
| 3303 | ;; same string is also used when sniffing ffmpeg's output. | 3301 | (substitute* "src/you_get/processor/ffmpeg.py" |
| 3304 | (("(FFMPEG == |\\()'ffmpeg'" _ prefix) | 3302 | ;; Don't blindly replace all occurrences of ‘'ffmpeg'’: the |
| 3305 | (string-append prefix "'" ffmpeg "'"))))))) | 3303 | ;; same string is also used when sniffing ffmpeg's output. |
| 3306 | #:tests? #f)) ; XXX some tests need Internet access | 3304 | (("(FFMPEG == |\\()'ffmpeg'" _ prefix) |
| 3305 | (string-append prefix "'" ffmpeg "'"))))))))) | ||
| 3306 | (native-inputs (list python-setuptools)) | ||
| 3307 | (inputs (list ffmpeg)) ;for multi-part and >=1080p videos | ||
| 3307 | (synopsis "Download videos, audio, or images from Web sites") | 3308 | (synopsis "Download videos, audio, or images from Web sites") |
| 3308 | (description | 3309 | (description |
| 3309 | "You-Get is a command-line utility to download media contents (videos, | 3310 | "You-Get is a command-line utility to download media contents (videos, |
