pyfa: 2.68.0 -> 2.69.0

This commit is contained in:
Christoph Hollizeck
2026-09-22 21:24:40 +02:00
parent 9c695faab6
commit ac79975ecf
2 changed files with 26 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
--- a/gui/utils/dark.py
+++ b/gui/utils/dark.py
@@ -45,12 +45,12 @@
return False
theme = ThemeSettings.getInstance().get('theme')
- appearance = {
- ThemeSettings.SYSTEM: wx.App.Appearance.System,
- ThemeSettings.DARK: wx.App.Appearance.Dark,
- }.get(theme, wx.App.Appearance.Light)
try:
+ appearance = {
+ ThemeSettings.SYSTEM: wx.App.Appearance.System,
+ ThemeSettings.DARK: wx.App.Appearance.Dark,
+ }.get(theme, wx.App.Appearance.Light)
if 'wxMSW' in wx.PlatformInfo and theme != ThemeSettings.BRIGHT:
flags = wx.App.DarkMode_Always if theme == ThemeSettings.DARK else wx.App.DarkMode_Auto
if not app.MSWEnableDarkMode(flags):

View File

@@ -11,7 +11,7 @@
copyDesktopItems,
}:
let
version = "2.68.0";
version = "2.69.0";
in
python3Packages.buildPythonApplication rec {
inherit version;
@@ -22,9 +22,11 @@ python3Packages.buildPythonApplication rec {
owner = "pyfa-org";
repo = "Pyfa";
tag = "v${version}";
hash = "sha256-obx4YG75XxpdlaFlmFmkXdkazHERhm5boOzSx7zDRQs=";
hash = "sha256-sLZ5907hsiYerYDKOWrBfnoNueqg7lbff0e1Eh4ia0g=";
};
patches = [ ./dark-theme-wxpython-4.2-compat.patch ];
desktopItems = [
(makeDesktopItem {
name = "pyfa";
@@ -43,9 +45,10 @@ python3Packages.buildPythonApplication rec {
matplotlib
python-dateutil
requests
sqlalchemy_1_4
sqlalchemy
cryptography
markdown2
packaging
beautifulsoup4
pyaml
roman
@@ -72,7 +75,7 @@ python3Packages.buildPythonApplication rec {
#
# upstream does not include setup.py
#
patchPhase = ''
postPatch = ''
cat > setup.py <<EOF
from setuptools import setup
setup(