From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXVC2-0005z6-Rj for guix-patches@gnu.org; Fri, 05 Jan 2018 11:50:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXVBy-0005Dp-PC for guix-patches@gnu.org; Fri, 05 Jan 2018 11:50:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXVBy-0005Df-JI for guix-patches@gnu.org; Fri, 05 Jan 2018 11:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eXVBy-0006rS-CW for guix-patches@gnu.org; Fri, 05 Jan 2018 11:50:02 -0500 Subject: [bug#29994] [PATCH 2/2] gnu: Add nmoldyn. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXVAq-0005k6-TT for guix-patches@gnu.org; Fri, 05 Jan 2018 11:48:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXVAm-0004K8-Qt for guix-patches@gnu.org; Fri, 05 Jan 2018 11:48:52 -0500 Received: from smtp.synchrotron.fr ([195.221.0.32]:39813 helo=poussette.synchrotron-soleil.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXVAm-0004Jb-4d for guix-patches@gnu.org; Fri, 05 Jan 2018 11:48:48 -0500 From: Konrad Hinsen Date: Fri, 5 Jan 2018 17:14:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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: 29994@debbugs.gnu.org * gnu/packages/chemistry.scm (nmoldyn): New variable. --- gnu/packages/chemistry.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/chemistry.scm b/gnu/packages/chemistry.scm index 871d6f668..9e60ade4d 100644 --- a/gnu/packages/chemistry.scm +++ b/gnu/packages/chemistry.scm @@ -20,6 +20,8 @@ #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (gnu packages gv) + #:use-module (gnu packages maths) #:use-module (gnu packages python) #:use-module (guix build-system python)) @@ -52,3 +54,68 @@ domains by comparing two protein structures, or from normal mode analysis on a single structure. The software is currently not actively maintained and works only with Python 2 and NumPy < 1.9.") (license license:cecill-c))) + +(define with-numpy-1.8 + (package-input-rewriting `((,python2-numpy . ,python2-numpy-1.8)))) + +(define-public nmoldyn + (package + (name "nmoldyn") + (version "3.0.11") + (source + (origin + (method url-fetch) + (uri (string-append "https://bitbucket.org/khinsen/" + "nmoldyn3/downloads/nMOLDYN-" + version ".tar.gz")) + (file-name (string-append "nMOLDYN-" version ".tar.gz")) + (sha256 + (base32 + "1mvmz3lkr217kdrd8cvdr1d82y58wp1403c9rnd943mijgq8xb5a")))) + (build-system python-build-system) + (inputs + `(("python-matplotlib" ,(with-numpy-1.8 python2-matplotlib)) + ("python-scientific", python2-scientific) + ("netcdf", netcdf) + ("gv" ,gv))) + (propagated-inputs + `(("python-mmtk" ,python2-mmtk))) + (arguments + `(#:python ,python-2 + #:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + (add-before 'build 'create-linux2-directory + (lambda _ + (mkdir-p "nMOLDYN/linux2"))) + (add-before 'build 'change-PDF-viewer + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "nMOLDYN/Preferences.py" + ;; Set the paths for external executables, substituting + ;; gv for acroread. + ;; There is also vmd_path, but VMD is not free software + ;; and Guix contains currently no free molecular viewer that + ;; could be substituted. + (("PREFERENCES\\['acroread_path'\\] = ''") + (format "PREFERENCES['acroread_path'] = '~a'" + (which "gv"))) + (("PREFERENCES\\['ncdump_path'\\] = ''") + (format "PREFERENCES['ncdump_path'] = '~a'" + (which "ncdump"))) + (("PREFERENCES\\['ncgen_path'\\] = ''") + (format "PREFERENCES['ncgen_path'] = '~a'" + (which "ncgen3"))) + (("PREFERENCES\\['task_manager_path'\\] = ''") + (format "PREFERENCES['task_manager_path'] = '~a'" + (which "task_manager"))) + ;; Show documentation as PDF + (("PREFERENCES\\['documentation_style'\\] = 'html'") + "PREFERENCES['documentation_style'] = 'pdf'") )))))) + (home-page "http://dirac.cnrs-orleans.fr/nMOLDYN/") + (synopsis "Analysis software for Molecular Dynamics trajectories") + (description "nMOLDYN is an interactive analysis program for Molecular Dynamics +simulations. It is especially designed for the computation and decomposition of +neutron scattering spectra, but also computes other quantities. The software +is currently not actively maintained and works only with Python 2 and +NumPy < 1.9.") + (license license:cecill))) -- 2.14.3 (Apple Git-98)