Merge pull request #273493 from ctheune/backport-267554-to-release-23.05-fix-requests

yt-dlp: 2023.10.13 -> 2023.11.14
This commit is contained in:
Martin Weinelt
2023-12-11 13:03:59 +01:00
committed by GitHub

View File

@@ -9,6 +9,7 @@
, pycryptodomex
, websockets
, mutagen
, requests
, secretstorage
, atomicparsleySupport ? true
, ffmpegSupport ? true
@@ -22,11 +23,11 @@ buildPythonPackage rec {
# The websites yt-dlp deals with are a very moving target. That means that
# downloads break constantly. Because of that, updates should always be backported
# to the latest stable release.
version = "2023.10.13";
version = "2023.11.14";
src = fetchPypi {
inherit pname version;
hash = "sha256-4CbqHENf827vEhW8TFu4xHmTi5AFSZe6mfY6RUH+Y7Q=";
hash = "sha256-s8JTU7oQaSLYcKWlnk1qLrhXg+vRfinsQ1vD4XZN6L4=";
};
propagatedBuildInputs = [
@@ -34,6 +35,7 @@ buildPythonPackage rec {
certifi
mutagen
pycryptodomex
requests
secretstorage # "optional", as in not in requirements.txt, needed for `--cookies-from-browser`
websockets
];
@@ -62,6 +64,11 @@ buildPythonPackage rec {
ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
'';
postPatch = ''
substituteInPlace requirements.txt \
--replace "requests>=2.31.0" "requests>=2.29.0"
'';
passthru.updateScript = [ update-python-libraries (toString ./.) ];
meta = with lib; {