about summary refs log tree commit diff
path: root/pkgs/development/python-modules/abjad/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/abjad/default.nix')
-rw-r--r--pkgs/development/python-modules/abjad/default.nix38
1 files changed, 20 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/abjad/default.nix b/pkgs/development/python-modules/abjad/default.nix
index 3c501a029b18..a6af83806afe 100644
--- a/pkgs/development/python-modules/abjad/default.nix
+++ b/pkgs/development/python-modules/abjad/default.nix
@@ -1,12 +1,15 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, ply
-, roman
-, uqbar
-, pythonOlder
-, pytestCheckHook
-, lilypond
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  ply,
+  roman,
+  uqbar,
+  pythonOlder,
+  pythonAtLeast,
+  pytestCheckHook,
+  lilypond,
+  typing-extensions,
 }:
 
 buildPythonPackage rec {
@@ -14,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;
@@ -25,24 +30,21 @@ buildPythonPackage rec {
     ply
     roman
     uqbar
+    typing-extensions
   ];
 
-  buildInputs = [
-    lilypond
-  ];
+  buildInputs = [ lilypond ];
 
-  nativeCheckInputs = [
-    pytestCheckHook
-  ];
+  nativeCheckInputs = [ pytestCheckHook ];
 
   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
   '';