tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ytmdl: 2021.06.26 -> 2021.08.01
Mario Rodas
4 years ago
d3a7131d
87e41eca
+13
-24
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
ytmdl
default.nix
+13
-24
pkgs/tools/misc/ytmdl/default.nix
···
1
{ lib
2
-
, fetchFromGitHub
3
-
, python3
4
-
, fetchpatch
5
, ffmpeg
6
}:
7
8
-
python3.pkgs.buildPythonApplication rec {
9
pname = "ytmdl";
10
-
version = "2021.06.26";
11
12
-
src = fetchFromGitHub {
13
-
owner = "deepjyoti30";
14
-
repo = pname;
15
-
rev = version;
16
-
sha256 = "1jpd5zhqg2m9vjjjw4mgzb594q1v1pq1yl65py6kw42bq9w5yl5p";
17
};
18
19
-
patches = [
20
-
# Fixes https://github.com/deepjyoti30/ytmdl/issues/188
21
-
# Only needed until the next major release after 2021.06.26
22
-
(fetchpatch {
23
-
url = "https://github.com/deepjyoti30/ytmdl/commit/37ba821d9692249c1fa563505cf60bd11b8e209e.patch";
24
-
includes = [ "bin/ytmdl" ];
25
-
sha256 = "sha256-VqtthpUL0Oub3DK7tSvAnemOzPPTcLvXXeebZIGOgdc=";
26
-
})
27
-
];
28
-
29
postPatch = ''
30
substituteInPlace setup.py \
31
-
--replace "bs4" "beautifulsoup4"
0
0
32
'';
33
34
-
35
-
propagatedBuildInputs = with python3.pkgs; [
36
ffmpeg-python
37
musicbrainzngs
38
rich
39
simber
40
pydes
41
-
youtube-search
42
unidecode
43
pyxdg
44
downloader-cli
···
48
pysocks
49
youtube-dl
50
ytmusicapi
0
51
];
52
53
makeWrapperArgs = [
···
1
{ lib
2
+
, python3Packages
0
0
3
, ffmpeg
4
}:
5
6
+
python3Packages.buildPythonApplication rec {
7
pname = "ytmdl";
8
+
version = "2021.08.01";
9
10
+
src = python3Packages.fetchPypi {
11
+
inherit pname;
12
+
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
13
+
sha256 = "f5ef23dcba89aaf2307baf4ffc2326dc5c02324f646e5e5748219ed328202af4";
0
14
};
15
0
0
0
0
0
0
0
0
0
0
16
postPatch = ''
17
substituteInPlace setup.py \
18
+
--replace "bs4" "beautifulsoup4" \
19
+
--replace "/etc/bash_completion.d" "share/bash-completion/completions" \
20
+
--replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
21
'';
22
23
+
propagatedBuildInputs = with python3Packages; [
0
24
ffmpeg-python
25
musicbrainzngs
26
rich
27
simber
28
pydes
29
+
youtube-search-python
30
unidecode
31
pyxdg
32
downloader-cli
···
36
pysocks
37
youtube-dl
38
ytmusicapi
39
+
spotipy
40
];
41
42
makeWrapperArgs = [