diff options
Diffstat (limited to 'pkgs/development/python-modules/abjad/default.nix')
-rw-r--r-- | pkgs/development/python-modules/abjad/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/abjad/default.nix b/pkgs/development/python-modules/abjad/default.nix index 9ff530afdf741..a6af83806afe6 100644 --- a/pkgs/development/python-modules/abjad/default.nix +++ b/pkgs/development/python-modules/abjad/default.nix @@ -6,8 +6,10 @@ roman, uqbar, pythonOlder, + pythonAtLeast, pytestCheckHook, lilypond, + typing-extensions, }: buildPythonPackage rec { @@ -15,7 +17,9 @@ buildPythonPackage rec { version = "3.19"; format = "setuptools"; - disabled = pythonOlder "3.10"; + # see issue upstream indicating Python 3.12 support will come + # with version 3.20: https://github.com/Abjad/abjad/issues/1574 + disabled = pythonOlder "3.10" || pythonAtLeast "3.12"; src = fetchPypi { inherit pname version; @@ -26,6 +30,7 @@ buildPythonPackage rec { ply roman uqbar + typing-extensions ]; buildInputs = [ lilypond ]; @@ -34,12 +39,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 ''; |