Added app-misc/anki-25.02.7
This commit is contained in:
28
app-misc/anki/files/24.04.1/remove-mypy-protobuf.patch
Normal file
28
app-misc/anki/files/24.04.1/remove-mypy-protobuf.patch
Normal file
@ -0,0 +1,28 @@
|
||||
https://github.com/nipunn1313/mypy-protobuf has not yet been packaged.
|
||||
It adds typing information to Anki and is only needed for development.
|
||||
|
||||
I have packaged some of its test-dependencies on ::guru. Unfortunately,
|
||||
I'm not too happy yet with the quality of the transitive test-dep
|
||||
dev-python/pytest-mypy-plugins. Any help is welcome!
|
||||
|
||||
From: Lucio Sauer <watermanpaint@posteo.net>
|
||||
--- a/build/configure/src/python.rs
|
||||
+++ b/build/configure/src/python.rs
|
||||
@@ -90,9 +90,7 @@ pub struct GenPythonProto {
|
||||
impl BuildAction for GenPythonProto {
|
||||
fn command(&self) -> &str {
|
||||
"$protoc $
|
||||
- --plugin=protoc-gen-mypy=$protoc-gen-mypy $
|
||||
--python_out=$builddir/pylib $
|
||||
- --mypy_out=$builddir/pylib $
|
||||
-Iproto $in"
|
||||
}
|
||||
|
||||
@@ -110,7 +108,6 @@ impl BuildAction for GenPythonProto {
|
||||
.collect();
|
||||
build.add_inputs("in", &self.proto_files);
|
||||
build.add_inputs("protoc", inputs![":protoc_binary"]);
|
||||
- build.add_inputs("protoc-gen-mypy", inputs![":pyenv:protoc-gen-mypy"]);
|
||||
build.add_outputs("", python_outputs);
|
||||
}
|
||||
|
21
app-misc/anki/files/24.04.1/revert-cert-store-hack.patch
Normal file
21
app-misc/anki/files/24.04.1/revert-cert-store-hack.patch
Normal file
@ -0,0 +1,21 @@
|
||||
pip_system_certs is a hack to force certifi to use the system
|
||||
certificate store. Let's use dev-python/certifi, which is a hack of
|
||||
its own, instead of introducing an automagical dependency.
|
||||
|
||||
From: Lucio Sauer <watermanpaint@posteo.net>
|
||||
--- a/qt/aqt/__init__.py
|
||||
+++ b/qt/aqt/__init__.py
|
||||
@@ -6,13 +6,6 @@ from __future__ import annotations
|
||||
import logging
|
||||
import sys
|
||||
|
||||
-try:
|
||||
- import pip_system_certs.wrapt_requests
|
||||
-except ModuleNotFoundError:
|
||||
- print(
|
||||
- "Python module pip_system_certs is not installed. System certificate store and custom SSL certificates may not work. See: https://github.com/ankitects/anki/issues/3016"
|
||||
- )
|
||||
-
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 9:
|
||||
raise Exception("Anki requires Python 3.9+")
|
||||
|
Reference in New Issue
Block a user