nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From e97f418803c1db9a753fa755a9ee0cf04eabaed3 Mon Sep 17 00:00:00 2001
2From: rembo10 <rembo10@users.noreply.github.com>
3Date: Sun, 11 Sep 2022 13:00:29 +0530
4Subject: [PATCH] Allow running on unsupported Python versions
5
6---
7 sickgear.py | 5 +----
8 1 file changed, 1 insertion(+), 4 deletions(-)
9
10diff --git a/sickgear.py b/sickgear.py
11index 9d0440bb..6d65e65d 100755
12--- a/sickgear.py
13+++ b/sickgear.py
14@@ -43,10 +43,7 @@ versions = [((2, 7, 9), (2, 7, 18)), ((3, 7, 1), (3, 8, 14)),
15 ((3, 9, 0), (3, 9, 2)), ((3, 9, 4), (3, 9, 14)),
16 ((3, 10, 0), (3, 10, 7))] # inclusive version ranges
17 if not any(list(map(lambda v: v[0] <= sys.version_info[:3] <= v[1], versions))) and not int(os.environ.get('PYT', 0)):
18- print('Python %s.%s.%s detected.' % sys.version_info[:3])
19- print('Sorry, SickGear requires a Python version %s' % ', '.join(map(
20- lambda r: '%s - %s' % tuple(map(lambda v: str(v).replace(',', '.')[1:-1], r)), versions)))
21- sys.exit(1)
22+ pass
23
24 sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), 'lib')))
25 is_win = 'win' == sys.platform[0:3]
26--
272.37.2
28