blob: 7c047a39c7de6455146be5a84c2fb909a9d6db00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{ inputs }:
self: super: {
yt-dlp =
with super;
with shiton3.pkgs;
shiton3.pkgs.buildPythonPackage {
pname = "yt-dlp";
version = "git";
# format = "setuptools";
pyproject = true;
src = fetchGit {
url = "https://github.com/yt-dlp/yt-dlp";
ref = "master";
# rev = "882e3b753c79c7799ce135c3a5edb72494b576af";
submodules = true;
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
brotli
certifi
mutagen
pycryptodomex
websockets
requests
urllib3
];
makeWrapperArgs =
let
packagesToBinPath = [
atomicparsley
self.ffmpeg_my
rtmpdump
];
in
lib.optionalString (packagesToBinPath != [ ]) [
''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"''
];
setupPyBuildFlags = [
"build_lazy_extractors"
];
doCheck = false;
postInstall = ''
ln -s "$out/bin/yt-dlp" "$out/bin/youtube-dl"
'';
meta = with lib; {
homepage = "https://github.com/yt-dlp/yt-dlp/";
description = "Command-line tool to download videos from YouTube.com and other sites (youtube-dl fork)";
longDescription = ''
yt-dlp is a youtube-dl fork based on the now inactive youtube-dlc.
youtube-dl is a small, Python-based command-line program
to download videos from YouTube.com and a few more sites.
youtube-dl is released to the public domain, which means
you can modify it, redistribute it or use it however you like.
'';
license = licenses.unlicense;
mainProgram = "yt-dlp";
# maintainers = with maintainers; [ mkg20001 SuperSandro2000 marsam ];
};
};
}
|