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