diff --git a/spack.yaml b/spack.yaml
index 489af89bc26200572a23bf9d1665c5a07289bfe6..7f3711bc48f899c050d47aeebe1f5b02951fb0bb 100644
--- a/spack.yaml
+++ b/spack.yaml
@@ -19,7 +19,7 @@ spack:
     - fmt@8.1.1 +shared cxxstd=17
     - gaudi@36.7 +optional
     - geant4@11.0.3 cxxstd=17 +opengl +vecgeom +x11 +qt +threads
-    - hepmc3@3.2.4 +python +rootio 
+    - hepmc3@3.2.5 +rootio # +python prevented by https://github.com/spack/spack/issues/31648
     - heppdt@2.06.01
     - igprof@5.9.16
     #- imagemagick@7.0.8-7