guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ebe4cc6b3b7c02f691c4ce236a9a7c98746205a4
Author: Andreas Enge <[email protected]>
AuthorDate: Fri Mar 6 11:36:46 2026 +0100

    gnu: Remove python-dolfin-adjoint.
    
    * gnu/packages/simulation.scm (python-dolfin-adjoint): Delete variable.
    
    Fixes: guix/guix#6128
    Change-Id: I86bf93403a7cf222b9ae89cb0e786b9b86384d04
---
 gnu/packages/simulation.scm | 85 ---------------------------------------------
 1 file changed, 85 deletions(-)

diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm
index 14f1f0fc18..8be2ac72bb 100644
--- a/gnu/packages/simulation.scm
+++ b/gnu/packages/simulation.scm
@@ -1447,91 +1447,6 @@ resources to model limited capacity congestion points 
(like servers, checkout
 counters and tunnels).")
     (license license:bsd-2)))
 
-(define-public python-dolfin-adjoint
-  (package
-    (name "python-dolfin-adjoint")
-    (version "2019.1.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/dolfin-adjoint/pyadjoint";)
-             (commit version)))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "0xhy76a5f33hz94wc9g2mc5qmwkxfccbbc6yxl7psm130afp8lhn"))
-       (modules '((guix build utils)))
-       (snippet
-        '(begin
-           ;; One of the migration tests attempts to call openmpi
-           ;; recursively and fails.  See
-           ;; https://bitbucket.org/mpi4py/mpi4py/issues/95.  Run the
-           ;; test sequentially instead.
-           (with-directory-excursion "tests/migration/optimal_control_mms"
-             (substitute* "test_optimal_control_mms.py"
-               (("\\\"mpirun\\\", \\\"-n\\\", \\\"2\\\", ") "")))
-           ;; Result files are regenerated in the check phase.
-           (delete-file-recursively
-            "tests/migration/viscoelasticity/test-results")))))
-    (build-system pyproject-build-system)
-    (arguments
-     (list
-      #:test-flags
-      #~(list
-         ;; Ignore tests which require missing packages and/or failed during
-         ;; tests collection.
-         "--import-mode=importlib"
-         "--ignore=tests/firedrake_adjoint"
-         "--ignore=tests/fenics_adjoint/test_dynamic_meshes.py"
-         "-k" (string-append "not test_sin_weak_spatial and "
-                             "not test_shape_hessian and "
-                             "not test_read_checkpoint and "
-                             "not test_lu_solver and "
-                             "not test_lu_solver_function_ctrl and "
-                             "not test_dirichletbc_subspace"))
-      #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'build 'mpi-setup #$%openmpi-setup)
-          (add-before 'check 'set-environment-variables
-            (lambda _
-              (setenv "HOME" (getcwd))))
-          (add-after 'install 'install-doc
-            (lambda _
-              (let* ((doc (string-append #$output "/share/doc/" #$name "-" 
#$version))
-                     (examples (string-append doc "/examples")))
-                (mkdir-p examples)
-                (copy-recursively "examples" examples))))
-          ;; Remove 'sanity-check, because it tries to import
-          ;; firedrake_adjoint after importing fenics_adjoint.
-          ;; Both load a module named 'backend' and firedrake_adjoint
-          ;; fails with an ImportError if it sees that the backend module
-          ;; has already been loaded.
-          (delete 'sanity-check))))
-    (inputs
-     (list fenics openmpi pybind11-2))
-    (native-inputs
-     (list pkg-config
-           python-decorator
-           python-pkgconfig
-           python-pytest
-           python-setuptools
-           python-wheel))
-    (propagated-inputs
-     (list python-scipy))
-    (home-page "https://www.dolfin-adjoint.org";)
-    (synopsis "Automatic differentiation library")
-    (description
-     "@code{python-dolfin-adjoint} is a solver of differential equations
-associated with a governing system and a functional of interest.  Working from
-the forward model the solver automatically derives the discrete adjoint and
-tangent linear models.  These additional models are key ingredients in many
-algorithms such as data assimilation, optimal control, sensitivity analysis,
-design optimisation and error estimation.  The dolfin-adjoint project provides
-the necessary tools and data structures for cases where the forward model is
-implemented in @code{fenics} or
-@url{https://firedrakeproject.org,firedrake}.";)
-    (license license:lgpl3)))
-
 (define %commonroad-dont-install-license-at-root
   #~(substitute* "setup.py"
       (("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],")

Reply via email to