gnu: python-fenics-fiat: Refresh package, fix build.

This package is quite dated and upstream no longer maintains it: "This
repository was archived by the owner on Feb 21, 2022. It is now
read-only." <https://bitbucket.org/fenics-project/fiat> ->
<https://github.com/FEniCS/fiat> while providing a new refactored
fork <https://github.com/firedrakeproject/fiat>.

* gnu/packages/simulation.scm (python-fenics-fiat)
[build-system]: Swap to pyproject-build-system.
[arguments] <test-flags>: Move tests skip logic here.
<phases>: Use default 'check.
[native-inputs]: Add python-setuptools and python-wheel.
[description]: Adjust fill column indentation.

Change-Id: Ifea4430b1e49491f1b145702ec6df58153a9c809
This commit is contained in:
Sharlatan Hellseher 2025-03-22 23:17:24 +00:00
parent 42db14eee2
commit 8f17262ceb
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -637,48 +637,56 @@ forms in a notation close to mathematical notation.
UFL is part of the FEniCS Project.") UFL is part of the FEniCS Project.")
(license license:lgpl3+))) (license license:lgpl3+)))
;; XXX: This package is quite dated and upstream no longer maintains it: "This
;; repository was archived by the owner on Feb 21, 2022. It is now read-only."
;; <https://bitbucket.org/fenics-project/fiat> ->
;; <https://github.com/FEniCS/fiat> while providing a new refactored fork
;; <https://github.com/firedrakeproject/fiat>.
(define-public python-fenics-fiat (define-public python-fenics-fiat
(package (package
(name "python-fenics-fiat") (name "python-fenics-fiat")
(version "2019.1.0") (version "2019.1.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "fenics-fiat" version)) (uri (pypi-uri "fenics-fiat" version))
(sha256 (sha256
(base32 (base32 "13sc7lma3d2mh43an7i4kkdbbk4cmvxjk45wi43xnjd7qc38zg4b"))))
"13sc7lma3d2mh43an7i4kkdbbk4cmvxjk45wi43xnjd7qc38zg4b")))) (build-system pyproject-build-system)
(build-system python-build-system)
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-numpy python-sympy))
(arguments (arguments
'(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check #~(list
(lambda _ ;; FIXME: three FIAT test modules are known to fail with recent
(with-directory-excursion "test" ;; versions of pytest (>= 4). These are skipped for FIAT version
;; FIXME: three FIAT test modules are known to fail ;; 2019.1.0 pending an upstream pull request. For details see request
;; with recent versions of pytest (>= 4). These are ;; #59 at https://bitbucket.org/fenics-project/fiat/.
;; skipped for FIAT version 2019.1.0 pending an "--ignore=test/regression/"
;; upstream pull request. For details see request #59 "--ignore=test/unit/test_quadrature.py"
;; at https://bitbucket.org/fenics-project/fiat/. "--ignore=test/unit/test_reference_element.py"
(invoke "py.test" "unit/" "-k" (string-join
"--ignore=unit/test_fiat.py" (list "not test_nodality"
"--ignore=unit/test_quadrature.py" "test_basis_values")
"--ignore=unit/test_reference_element.py"))))))) " and not "))))
(native-inputs
(list python-pytest
python-setuptools
python-wheel))
(propagated-inputs
(list python-numpy
python-sympy))
(home-page "https://bitbucket.org/fenics-project/fiat/") (home-page "https://bitbucket.org/fenics-project/fiat/")
(synopsis "Tabulation of finite element function spaces") (synopsis "Tabulation of finite element function spaces")
(description (description
"The FInite element Automatic Tabulator (FIAT) supports "The FInite element Automatic Tabulator (FIAT) supports generation of
generation of arbitrary order instances of the Lagrange elements on arbitrary order instances of the Lagrange elements on lines, triangles, and
lines, triangles, and tetrahedra. It is also capable of generating tetrahedra. It is also capable of generating arbitrary order instances of
arbitrary order instances of Jacobi-type quadrature rules on the same Jacobi-type quadrature rules on the same element shapes. Further, H(div) and
element shapes. Further, H(div) and H(curl) conforming finite element H(curl) conforming finite element spaces such as the families of
spaces such as the families of Raviart-Thomas, Brezzi-Douglas-Marini Raviart-Thomas, Brezzi-Douglas-Marini and Nedelec are supported on triangles
and Nedelec are supported on triangles and tetrahedra. Upcoming and tetrahedra. Upcoming versions will also support Hermite and nonconforming
versions will also support Hermite and nonconforming elements. elements.
FIAT is part of the FEniCS Project.") FIAT is part of the FEniCS Project.")
(license license:lgpl3+))) (license license:lgpl3+)))