Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pkgs/by-name/py/pytrainer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
perl,
sqlite,
tzdata,
webkitgtk_4_0,
webkitgtk_4_1,
wrapGAppsHook3,
xvfb-run,
}:
Expand Down Expand Up @@ -60,7 +60,7 @@ python.pkgs.buildPythonApplication rec {
buildInputs = [
sqlite
gtk3
webkitgtk_4_0
webkitgtk_4_1
glib-networking
adwaita-icon-theme
gdk-pixbuf
Expand Down Expand Up @@ -89,6 +89,10 @@ python.pkgs.buildPythonApplication rec {
postPatch = ''
substituteInPlace pytrainer/platform.py \
--replace-fail 'sys.prefix' "\"$out\""

# https://github.com/pytrainer/pytrainer/pull/281
substituteInPlace pytrainer/extensions/mapviewer.py \
--replace-fail "gi.require_version('WebKit2', '4.0')" "gi.require_version('WebKit2', '4.1')"
'';

checkPhase = ''
Expand Down
Loading