File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
kivy_ios/recipes/materialyoucolor Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ from kivy_ios .toolchain import PythonRecipe
2+
3+
4+ class MaterialYouColorRecipe (PythonRecipe ):
5+ version = "2.0.7"
6+ url = "https://github.com/T-Dynamos/materialyoucolor-pyhton/archive/refs/tags/v{version}.tar.gz"
7+ depends = ["hostpython3" , "python3" ]
8+ hostpython_prerequisites = ["certifi" ]
9+
10+ def prebuild_platform (self , plat ):
11+ if self .has_marker ("patched" ):
12+ return
13+ self .apply_patch ("fix_cert.patch" )
14+ self .set_marker ("patched" )
15+
16+
17+ recipe = MaterialYouColorRecipe ()
Original file line number Diff line number Diff line change 1+ --- materialyoucolor-pyhton/setup.py 2024-03-16 20:29:35.548962347 +0530
2+ +++ materialyoucolor-pyhton.patched/setup.py 2024-03-16 20:31:14.222400319 +0530
3+ @@ -50,6 +50,8 @@
4+ from functools import lru_cache
5+ from pathlib import Path
6+ import urllib.request
7+ + import ssl
8+ + import certifi
9+ from glob import glob
10+ from setuptools import find_packages, setup
11+ from typing import (
12+ @@ -537,7 +539,9 @@
13+ print("Downloading required files...")
14+ for file in FILES:
15+ with open(os.path.join(FOLDER, os.path.basename(file)), "w") as write_buffer:
16+ - write_buffer.write(urllib.request.urlopen(URL + file).read().decode("utf-8"))
17+ + write_buffer.write(urllib.request.urlopen(
18+ + URL + file, context=ssl.create_default_context(cafile=certifi.where())
19+ + ).read().decode("utf-8"))
20+ write_buffer.close()
21+ print("[Downloaded] : " + file)
22+
You can’t perform that action at this time.
0 commit comments