Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

easyabc: pin wxPython #243787

Merged
merged 1 commit into from
Aug 20, 2023
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
26 changes: 21 additions & 5 deletions pkgs/applications/audio/easyabc/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{ lib, fetchFromGitHub, substituteAll, makeWrapper, python39, fluidsynth, soundfont-fluid, wrapGAppsHook, abcmidi, abcm2ps, ghostscript }:
{ lib, fetchFromGitHub, fetchPypi, substituteAll, python39, fluidsynth, soundfont-fluid, wrapGAppsHook, abcmidi, abcm2ps, ghostscript }:

# requires python39 due to https://stackoverflow.com/a/71902541 https://github.com/jwdj/EasyABC/issues/52
python39.pkgs.buildPythonApplication {
let
# requires python39 due to https://stackoverflow.com/a/71902541 https://github.com/jwdj/EasyABC/issues/52
python = python39.override {
self = python;
packageOverrides = self: super: {
# currently broken with 4.2.1
mausch marked this conversation as resolved.
Show resolved Hide resolved
# https://github.com/jwdj/EasyABC/issues/75
wxPython_4_2 = super.wxPython_4_2.overrideAttrs (args: rec {
version = "4.2.0";
src = fetchPypi {
inherit version;
pname = "wxPython";
hash = "sha256-ZjzrxFCdfl0RNRiGX+J093+VQ0xdV7w4btWNZc7thsc=";
};
});
};
};
in python.pkgs.buildPythonApplication {
pname = "easyabc";
version = "1.3.8.6";

Expand All @@ -14,7 +30,7 @@ python39.pkgs.buildPythonApplication {

nativeBuildInputs = [ wrapGAppsHook ];

propagatedBuildInputs = with python39.pkgs; [
propagatedBuildInputs = with python.pkgs; [
cx-freeze
wxPython_4_2
pygame
Expand Down Expand Up @@ -48,7 +64,7 @@ python39.pkgs.buildPythonApplication {
ln -s ${abcmidi}/bin/abc2abc $out/share/easyabc/bin/abc2abc
ln -s ${abcm2ps}/bin/abcm2ps $out/share/easyabc/bin/abcm2ps
makeWrapper ${python39.interpreter} $out/bin/easyabc \
makeWrapper ${python.interpreter} $out/bin/easyabc \
--set PYTHONPATH "$PYTHONPATH:$out/share/easyabc" \
--add-flags "-O $out/share/easyabc/easy_abc.py"
Expand Down