mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 19:52:28 +03:00
Merge pull request #163505 from SuperSandro2000/yt-dlp
This commit is contained in:
commit
6b3ae39ad7
@ -1,6 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, brotli
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
, rtmpdump
|
, rtmpdump
|
||||||
, phantomjs2
|
, phantomjs2
|
||||||
@ -11,7 +12,6 @@
|
|||||||
, ffmpegSupport ? true
|
, ffmpegSupport ? true
|
||||||
, rtmpSupport ? true
|
, rtmpSupport ? true
|
||||||
, phantomjsSupport ? false
|
, phantomjsSupport ? false
|
||||||
, hlsEncryptedSupport ? true
|
|
||||||
, withAlias ? false # Provides bin/youtube-dl for backcompat
|
, withAlias ? false # Provides bin/youtube-dl for backcompat
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -20,16 +20,15 @@ buildPythonPackage rec {
|
|||||||
# The websites yt-dlp deals with are a very moving target. That means that
|
# 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
|
# downloads break constantly. Because of that, updates should always be backported
|
||||||
# to the latest stable release.
|
# to the latest stable release.
|
||||||
version = "2022.2.4";
|
version = "2022.3.8.2";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname;
|
inherit pname;
|
||||||
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
|
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
|
||||||
sha256 = "sha256-gbUO18+c/MBC2PWhrS0c17E8SLNsB/rxiAaW6sCn3bU=";
|
sha256 = "sha256-aFRleMGObOh0ULU3adXVt/WiPlIJeEl222x8y/eVSyE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ websockets mutagen ]
|
propagatedBuildInputs = [ brotli mutagen pycryptodomex websockets ];
|
||||||
++ lib.optional hlsEncryptedSupport pycryptodomex;
|
|
||||||
|
|
||||||
# Ensure these utilities are available in $PATH:
|
# Ensure these utilities are available in $PATH:
|
||||||
# - ffmpeg: post-processing & transcoding support
|
# - ffmpeg: post-processing & transcoding support
|
||||||
@ -52,7 +51,7 @@ buildPythonPackage rec {
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = lib.optionalString withAlias ''
|
postInstall = lib.optionalString withAlias ''
|
||||||
ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
|
ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -68,6 +67,6 @@ buildPythonPackage rec {
|
|||||||
you can modify it, redistribute it or use it however you like.
|
you can modify it, redistribute it or use it however you like.
|
||||||
'';
|
'';
|
||||||
license = licenses.unlicense;
|
license = licenses.unlicense;
|
||||||
maintainers = with maintainers; [ mkg20001 ];
|
maintainers = with maintainers; [ mkg20001 SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user