From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCLit-0006Rj-ML for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCLis-0004Ua-22 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCLir-0004UI-RG for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCLir-0003KN-Mc for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:05 -0400 Subject: [bug#33059] [PATCH 07/10] gnu: Add python-fenics-ffc. Resent-Message-ID: From: Paul Garlick Date: Tue, 16 Oct 2018 10:31:21 +0100 Message-Id: <1539682284-6446-7-git-send-email-pgarlick@tourbillion-technology.com> In-Reply-To: <1539682284-6446-1-git-send-email-pgarlick@tourbillion-technology.com> References: <1539682284-6446-1-git-send-email-pgarlick@tourbillion-technology.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 33059@debbugs.gnu.org Cc: Paul Garlick * gnu/packages/simulation.scm (python-fenics-ffc): New variable. --- gnu/packages/simulation.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 3a5e6cb..f6ad966 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -472,3 +472,57 @@ versions will also support Hermite and nonconforming elements. FIAT is part of the FEniCS Project.") (license license:lgpl3+))) + +(define-public python-fenics-ffc + (package + (name "python-fenics-ffc") + (version "2018.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fenics-ffc" version)) + (sha256 + (base32 + "1b2ia5vlkw298x7rf0k2p3ihlpwkwgc98p3s6sbpds3hqmfrzdz9")))) + (build-system python-build-system) + (native-inputs + `(("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-fenics-dijitso" ,python-fenics-dijitso) + ("python-fenics-fiat" ,python-fenics-fiat) + ("python-fenics-ufl" ,python-fenics-ufl))) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "HOME" (getcwd)) + (setenv "PYTHONPATH" + (string-append (getcwd) ":" (getenv "PYTHONPATH"))) + (chdir "test") + ;; FIXME: the tests in subdirectory + ;; 'unit/ufc/finite_element' require the ffc_factory + ;; extension module. This module, located in the 'libs' + ;; subdirectory, needs to be built and made accessible + ;; prior to running the tests. + (invoke "py.test" "unit/" "--ignore=unit/ufc/") + (chdir "uflacs") + (invoke "py.test" "unit/") + (chdir "../..") + #t))))) + (home-page + "https://bitbucket.org/fenics-project/ffc/") + (synopsis "Compiler for finite element variational forms") + (description "The FEniCS Form Compiler (FFC) is a compiler for +finite element variational forms. From a high-level description of +the form, it generates efficient low-level C++ code that can be used +to assemble the corresponding discrete operator (tensor). In +particular, a bilinear form may be assembled into a matrix and a +linear form may be assembled into a vector. FFC may be used either +from the command line (by invoking the @code{ffc} command) or as a +Python module (@code{import ffc}). + +FFC is part of the FEniCS Project.") + ;; There are two files released with a public domain licence; + ;; ufc.h and ufc_geometry.h, in subdirectory 'ffc/backends/ufc'. + (license (list license:public-domain license:lgpl3+)))) -- 1.8.3.1