From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCLit-0006Rg-Ld 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 1gCLir-0004TK-04 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47572) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCLiq-0004TA-S9 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCLiq-0003K2-75 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:04 -0400 Subject: [bug#33059] [PATCH 05/10] gnu: Add python-fenics-ufl. Resent-Message-ID: From: Paul Garlick Date: Tue, 16 Oct 2018 10:31:19 +0100 Message-Id: <1539682284-6446-5-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-ufl): New variable. --- gnu/packages/simulation.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 8bbf435..214a834 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -389,3 +389,42 @@ a class implementing a predefined C++ interface, there is no limit to the complexity of that interface. Parallel support depends on the @code{mpi4py} interface.") (license license:lgpl3+))) + +(define-public python-fenics-ufl + (package + (name "python-fenics-ufl") + (version "2018.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "fenics-ufl" version)) + (sha256 + (base32 + "1fq8yc86s1s3c8c0b1rc2vf265q0hrkzg57100fg1nghcz0p4vla")))) + (build-system python-build-system) + (inputs + `(("python-numpy" ,python-numpy))) + (native-inputs + `(("python-pytest" ,python-pytest))) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" + (string-append (getcwd) ":" (getenv "PYTHONPATH"))) + (chdir "test") + (invoke "py.test") + (chdir "..") + #t))))) + (home-page + "https://bitbucket.org/fenics-project/ufl/") + (synopsis "Unified language for form-compilers") + (description "The Unified Form Language (UFL) is a domain specific +language for declaration of finite element discretizations of +variational forms. More precisely, it defines a flexible interface +for choosing finite element spaces and defining expressions for weak +forms in a notation close to mathematical notation. + +UFL is part of the FEniCS Project.") + (license license:lgpl3+))) -- 1.8.3.1