From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCLit-0006Rf-LX 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 1gCLip-0004S1-I1 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47568) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gCLip-0004Rp-EC for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gCLip-0003Jn-96 for guix-patches@gnu.org; Tue, 16 Oct 2018 05:33:03 -0400 Subject: [bug#33059] [PATCH 03/10] gnu: Add python-slepc4py. Resent-Message-ID: From: Paul Garlick Date: Tue, 16 Oct 2018 10:31:17 +0100 Message-Id: <1539682284-6446-3-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-slepc4py): New variable. --- gnu/packages/simulation.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 3f6b73f..72528c0 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -302,3 +302,41 @@ message-passing communication. @code{petsc4py} provides Python bindings to almost all functions of PETSc.") (license license:bsd-3))) +(define-public python-slepc4py + (package + (name "python-slepc4py") + (version "3.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "slepc4py" version)) + (sha256 + (base32 + "02xr0vndgibgkz3rgprqk05n3mk5mpgqw550sr4681vcsgz4zvb7")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'pre-build + (lambda _ + ;; Define path to PETSc installation. + (setenv "PETSC_DIR" (assoc-ref %build-inputs "petsc")) + ;; Define path to SLEPc installation. + (setenv "SLEPC_DIR" (assoc-ref %build-inputs "slepc")) + #t)) + (add-before 'check 'mpi-setup + ,%openmpi-setup)))) + (inputs + `(("python-numpy" ,python-numpy) + ("python-petsc4py" ,python-petsc4py) + ("slepc" ,slepc-openmpi))) + (home-page + "https://bitbucket.org/slepc/slepc4py/") + (synopsis "Python bindings for SLEPc") + (description "SLEPc, the Scalable Library for Eigenvalue Problem +Computations, is based on PETSc, the Portable, Extensible Toolkit for +Scientific Computation. It employs the MPI standard for all +message-passing communication. @code{slepc4py} provides Python +bindings to almost all functions of SLEPc.") + (license license:bsd-3))) + -- 1.8.3.1