diff options
Diffstat (limited to 'gnu/packages/video.scm')
| -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, |
