diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-22 22:57:18 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-11-26 21:22:06 +0000 |
| commit | 98d4c1daebba7abc46a931d570c0bf8501a1ae3a (patch) | |
| tree | 40a6edad937aaa454b9e43539f90adf59aa2957f /gnu | |
| parent | a978dc3d3e4c0cf1e90dbb86eb5bb481699a1c36 (diff) | |
gnu: python-fenics-ffc: Switch to pyproject.
* gnu/packages/simulation.scm (python-fenics-ffc):
[source, arguments, description]: Improve style.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-setuptools.
Change-Id: I311ee58857bb796e6cacece5408a2eb62c754a04
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/simulation.scm | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index ff8c2ed974e..f667c4d1d7f 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm | |||
| @@ -697,42 +697,40 @@ FIAT is part of the FEniCS Project.") | |||
| 697 | (name "python-fenics-ffc") | 697 | (name "python-fenics-ffc") |
| 698 | (version "2019.1.0.post0") | 698 | (version "2019.1.0.post0") |
| 699 | (source | 699 | (source |
| 700 | (origin | 700 | (origin |
| 701 | (method url-fetch) | 701 | (method url-fetch) |
| 702 | (uri (pypi-uri "fenics-ffc" version)) | 702 | (uri (pypi-uri "fenics-ffc" version)) |
| 703 | (sha256 | 703 | (sha256 |
| 704 | (base32 | 704 | (base32 "1f2a44ha65fg3a1prrbrsz4dgvibsv0j5c3pi2m52zi93bhwwgg9")))) |
| 705 | "1f2a44ha65fg3a1prrbrsz4dgvibsv0j5c3pi2m52zi93bhwwgg9")))) | 705 | (build-system pyproject-build-system) |
| 706 | (build-system python-build-system) | ||
| 707 | (native-inputs | ||
| 708 | (list python-pytest)) | ||
| 709 | (propagated-inputs | ||
| 710 | (list python-fenics-dijitso python-fenics-fiat python-fenics-ufl)) | ||
| 711 | (arguments | 706 | (arguments |
| 712 | '(#:phases | 707 | (list |
| 713 | (modify-phases %standard-phases | 708 | #:phases |
| 714 | (replace 'check | 709 | #~(modify-phases %standard-phases |
| 715 | (lambda _ | 710 | (replace 'check |
| 716 | (setenv "HOME" (getcwd)) | 711 | (lambda _ |
| 717 | (with-directory-excursion "test" | 712 | (setenv "HOME" (getcwd)) |
| 718 | ;; FIXME: the tests in subdirectory | 713 | (with-directory-excursion "test" |
| 719 | ;; 'unit/ufc/finite_element' require the ffc_factory | 714 | ;; FIXME: the tests in subdirectory |
| 720 | ;; extension module. This module, located in the 'libs' | 715 | ;; 'unit/ufc/finite_element' require the ffc_factory |
| 721 | ;; subdirectory, needs to be built and made accessible | 716 | ;; extension module. This module, located in the 'libs' |
| 722 | ;; prior to running the tests. | 717 | ;; subdirectory, needs to be built and made accessible |
| 723 | (invoke "py.test" "unit/" "--ignore=unit/ufc/") | 718 | ;; prior to running the tests. |
| 724 | (with-directory-excursion "uflacs" | 719 | (invoke "pytest" "unit/" "--ignore=unit/ufc/") |
| 725 | (invoke "py.test" "unit/"))) | 720 | (with-directory-excursion "uflacs" |
| 726 | #t))))) | 721 | (invoke "pytest" "unit/")))))))) |
| 722 | (native-inputs (list python-pytest python-setuptools)) | ||
| 723 | (propagated-inputs (list python-fenics-dijitso python-fenics-fiat | ||
| 724 | python-fenics-ufl-2019)) | ||
| 727 | (home-page "https://bitbucket.org/fenics-project/ffc/") | 725 | (home-page "https://bitbucket.org/fenics-project/ffc/") |
| 728 | (synopsis "Compiler for finite element variational forms") | 726 | (synopsis "Compiler for finite element variational forms") |
| 729 | (description "The FEniCS Form Compiler (FFC) is a compiler for | 727 | (description |
| 730 | finite element variational forms. From a high-level description of | 728 | "The FEniCS Form Compiler (FFC) is a compiler for finite element |
| 731 | the form, it generates efficient low-level C++ code that can be used | 729 | variational forms. From a high-level description of the form, it generates |
| 732 | to assemble the corresponding discrete operator (tensor). In | 730 | efficient low-level C++ code that can be used to assemble the corresponding |
| 733 | particular, a bilinear form may be assembled into a matrix and a | 731 | discrete operator (tensor). In particular, a bilinear form may be assembled |
| 734 | linear form may be assembled into a vector. FFC may be used either | 732 | into a matrix and a linear form may be assembled into a vector. FFC may be |
| 735 | from the command line (by invoking the @code{ffc} command) or as a | 733 | used either from the command line (by invoking the @code{ffc} command) or as a |
| 736 | Python module (@code{import ffc}). | 734 | Python module (@code{import ffc}). |
| 737 | 735 | ||
| 738 | FFC is part of the FEniCS Project.") | 736 | FFC is part of the FEniCS Project.") |
