Merge pull request #311252 from davisrichard437/abjad

python311Packages.abjad: fix build
This commit is contained in:
OTABI Tomoya 2024-07-12 15:24:16 +09:00 committed by GitHub
commit 78b24c4c70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@
pythonOlder,
pytestCheckHook,
lilypond,
typing-extensions,
}:
buildPythonPackage rec {
@ -26,6 +27,7 @@ buildPythonPackage rec {
ply
roman
uqbar
typing-extensions
];
buildInputs = [ lilypond ];
@ -34,12 +36,12 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace abjad/io.py \
--replace 'lilypond_path = self.get_lilypond_path()' \
--replace-fail 'lilypond_path = self.get_lilypond_path()' \
'lilypond_path = "${lilypond}/bin/lilypond"'
# general invocations of binary for IO purposes
substituteInPlace abjad/configuration.py \
--replace '["lilypond"' '["${lilypond}/bin/lilypond"'
--replace-fail '["lilypond"' '["${lilypond}/bin/lilypond"'
# get_lilypond_version_string
'';