gnu: yt-dlp: Update to 2024.05.27.

* gnu/packages/video.scm (yt-dlp): Update to 2024.05.27.
[build-system]: Use PYPROJECT-BUILD-SYSTEM.
[arguments]: Remove the custom build phase 'fix-the-data-directories', because
There is no longer a setup.py file to be amended.
[inputs]: Add PYTHON-REQUESTS-NEXT and PYTHON-URLLIB3-NEXT.
[native-inputs]: Add PYTHON-HATCHLING.

Change-Id: I0c9e609817071346ca85d1f0966cf8994b2da2c5
This commit is contained in:
Leo Famulari 2024-06-18 21:11:27 -04:00
parent 0fa4cb5750
commit 9014b27480
No known key found for this signature in database
GPG key ID: 6AAC1963757F47FF

View file

@ -3138,7 +3138,7 @@ (define-public youtube-dl
(define-public yt-dlp (define-public yt-dlp
(package (package
(name "yt-dlp") (name "yt-dlp")
(version "2023.10.13") (version "2024.05.27")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -3147,8 +3147,8 @@ (define-public yt-dlp
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1cy8cpqwq6yfsbrnln3qqp9lsjckn20m6w7b890ha7jahyir5m1n")))) (base32 "13j6vg0kxfw3hppq7gzbz2d72g415071gh5arkwzj902rh0c7777"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:tests? ,(not (%current-target-system))
#:phases #:phases
@ -3177,14 +3177,6 @@ (define-public yt-dlp
"PYTHON=python" "PYTHON=python"
"yt-dlp" "yt-dlp"
"completions")))) "completions"))))
(add-before 'install 'fix-the-data-directories
(lambda* (#:key outputs #:allow-other-keys)
(let ((prefix (assoc-ref outputs "out")))
(substitute* "setup.py"
(("'etc/")
(string-append "'" prefix "/etc/"))
(("'share/")
(string-append "'" prefix "/share/"))))))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
@ -3193,6 +3185,8 @@ (define-public yt-dlp
python-certifi python-certifi
python-mutagen python-mutagen
python-pycryptodomex python-pycryptodomex
python-requests-next ; TODO Remove this special package
python-urllib3-next ; TODO Remove this one too
python-websockets)) python-websockets))
(native-inputs (native-inputs
(append (append
@ -3200,7 +3194,7 @@ (define-public yt-dlp
(if (supported-package? pandoc) (if (supported-package? pandoc)
(list pandoc) (list pandoc)
'()) '())
(list python-pytest zip))) (list python-hatchling python-pytest zip)))
(synopsis "Download videos from YouTube.com and other sites") (synopsis "Download videos from YouTube.com and other sites")
(description (description
"yt-dlp is a small command-line program to download videos from "yt-dlp is a small command-line program to download videos from