tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gPodder: 3.10.17 -> 3.10.21
Markus S. Wamser
3 years ago
ffa6a11a
74be820b
+17
-33
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
gpodder
default.nix
disable-autoupdate.patch
+9
-4
pkgs/applications/audio/gpodder/default.nix
···
5
5
6
6
python3Packages.buildPythonApplication rec {
7
7
pname = "gpodder";
8
8
-
version = "3.10.17";
8
8
+
version = "3.10.21";
9
9
format = "other";
10
10
11
11
src = fetchFromGitHub {
12
12
owner = pname;
13
13
repo = pname;
14
14
rev = version;
15
15
-
sha256 = "0wrk8d4q6ricbcjzlhk10vrk1qg9hi323kgyyd0c8nmh7a82h8pd";
15
15
+
sha256 = "0n73jm5ypsj962gpr0dk10lqh83giqsczm63wchyhmrkyf1wgga1";
16
16
};
17
17
18
18
patches = [
···
42
42
];
43
43
44
44
checkInputs = with python3Packages; [
45
45
-
coverage minimock
45
45
+
minimock
46
46
+
pytest
47
47
+
pytest-httpserver
48
48
+
pytest-cov
46
49
];
47
50
48
51
doCheck = true;
···
51
54
feedparser
52
55
dbus-python
53
56
mygpoclient
57
57
+
requests
54
58
pygobject3
55
59
eyeD3
56
60
podcastparser
···
69
73
'';
70
74
71
75
installCheckPhase = ''
72
72
-
LC_ALL=C PYTHONPATH=./src:$PYTHONPATH python3 -m gpodder.unittests
76
76
+
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest --ignore=tests --ignore=src/gpodder/utilwin32ctypes.py --doctest-modules src/gpodder/util.py src/gpodder/jsonconfig.py
77
77
+
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest tests --ignore=src/gpodder/utilwin32ctypes.py --ignore=src/mygpoclient --cov=gpodder
73
78
'';
74
79
75
80
meta = with lib; {
+8
-29
pkgs/applications/audio/gpodder/disable-autoupdate.patch
···
11
11
</section>
12
12
<section>
13
13
<item>
14
14
-
@@ -201,4 +197,4 @@
15
15
-
</submenu>
16
16
-
</menu>
17
17
-
</interface>
18
18
-
-<!-- :noTabs=true:tabSize=2:indentSize=2: -->
19
19
-
\ No newline at end of file
20
20
-
+<!-- :noTabs=true:tabSize=2:indentSize=2: -->
21
14
--- a/src/gpodder/config.py
22
15
+++ b/src/gpodder/config.py
23
23
-
@@ -91,13 +91,6 @@
24
24
-
'retries': 3, # number of retries when downloads time out
25
25
-
},
16
16
+
@@ -94,7 +94,7 @@
26
17
27
27
-
- # Software updates from gpodder.org
28
28
-
- 'software_update': {
18
18
+
# Software updates from gpodder.org
19
19
+
'software_update': {
29
20
- 'check_on_startup': True, # check for updates on start
30
30
-
- 'last_check': 0, # unix timestamp of last update check
31
31
-
- 'interval': 5, # interval (in days) to check for updates
32
32
-
- },
33
33
-
-
34
34
-
'ui': {
35
35
-
# Settings for the Command-Line Interface
36
36
-
'cli': {
21
21
+
+ 'check_on_startup': False, # check for updates on start
22
22
+
'last_check': 0, # unix timestamp of last update check
23
23
+
'interval': 5, # interval (in days) to check for updates
24
24
+
},
37
25
--- a/src/gpodder/gtkui/main.py
38
26
+++ b/src/gpodder/gtkui/main.py
39
39
-
@@ -224,7 +224,7 @@
40
40
-
util.idle_add(self.subscribe_to_url, self.options.subscribe)
41
41
-
elif not self.channels:
42
42
-
self.on_itemUpdate_activate()
43
43
-
- elif self.config.software_update.check_on_startup:
44
44
-
+ elif False and self.config.software_update.check_on_startup:
45
45
-
# Check for software updates from gpodder.org
46
46
-
diff = time.time() - self.config.software_update.last_check
47
47
-
if diff > (60 * 60 * 24) * self.config.software_update.interval:
48
48
-
@@ -3288,6 +3288,7 @@
27
27
+
@@ -3445,6 +3445,7 @@
49
28
If silent=False, a message will be shown even if no updates are
50
29
available (set silent=False when the check is manually triggered).
51
30
"""