2018-01-05 11:06:22 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net>
|
2021-01-22 21:32:41 -05:00
|
|
|
;;; Copyright © 2018, 2021 Kei Kebreau <kkebreau@posteo.net>
|
2018-12-16 15:52:52 -05:00
|
|
|
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
|
2018-12-23 04:58:55 -05:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2020-03-05 03:31:56 -05:00
|
|
|
;;; Copyright © 2020 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
2020-05-03 18:32:38 -04:00
|
|
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
2018-01-05 11:06:22 -05:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages chemistry)
|
|
|
|
#:use-module (guix packages)
|
2018-12-16 15:52:52 -05:00
|
|
|
#:use-module (guix utils)
|
2018-01-05 11:06:22 -05:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix download)
|
2018-12-23 04:58:55 -05:00
|
|
|
#:use-module (guix git-download)
|
2018-07-22 10:19:22 -04:00
|
|
|
#:use-module (gnu packages)
|
2018-07-13 22:44:54 -04:00
|
|
|
#:use-module (gnu packages algebra)
|
2021-01-22 21:32:41 -05:00
|
|
|
#:use-module (gnu packages autotools)
|
2018-07-18 14:11:16 -04:00
|
|
|
#:use-module (gnu packages boost)
|
2020-05-03 18:39:36 -04:00
|
|
|
#:use-module (gnu packages check)
|
2018-07-13 09:35:27 -04:00
|
|
|
#:use-module (gnu packages compression)
|
2018-07-18 14:11:16 -04:00
|
|
|
#:use-module (gnu packages documentation)
|
|
|
|
#:use-module (gnu packages gl)
|
2020-05-03 18:39:36 -04:00
|
|
|
#:use-module (gnu packages graphviz)
|
2018-01-05 11:14:24 -05:00
|
|
|
#:use-module (gnu packages gv)
|
|
|
|
#:use-module (gnu packages maths)
|
2020-05-03 18:39:36 -04:00
|
|
|
#:use-module (gnu packages mpi)
|
|
|
|
#:use-module (gnu packages perl)
|
2018-07-13 22:44:54 -04:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2018-01-05 11:06:22 -05:00
|
|
|
#:use-module (gnu packages python)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2018-07-18 14:11:16 -04:00
|
|
|
#:use-module (gnu packages qt)
|
2020-05-03 18:39:36 -04:00
|
|
|
#:use-module (gnu packages sphinx)
|
2018-07-13 22:44:54 -04:00
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (guix build-system cmake)
|
2018-07-13 09:35:27 -04:00
|
|
|
#:use-module (guix build-system gnu)
|
2018-01-05 11:06:22 -05:00
|
|
|
#:use-module (guix build-system python))
|
|
|
|
|
2018-07-18 14:11:16 -04:00
|
|
|
(define-public avogadro
|
|
|
|
(package
|
|
|
|
(name "avogadro")
|
|
|
|
(version "1.2.0")
|
2018-12-23 04:58:55 -05:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
(url "https://github.com/cryos/avogadro")
|
2018-12-23 04:58:55 -05:00
|
|
|
(commit version)))
|
|
|
|
(sha256
|
|
|
|
(base32 "0258py3lkba85qhs5ynancinyym61vlp0zaq9yrfs3hhnhpzv9n2"))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(patches
|
|
|
|
(search-patches "avogadro-eigen3-update.patch"
|
|
|
|
"avogadro-python-eigen-lib.patch"
|
|
|
|
"avogadro-boost148.patch"))))
|
2018-07-18 14:11:16 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2018-12-16 15:52:52 -05:00
|
|
|
`(#:tests? #f
|
2018-07-18 14:11:16 -04:00
|
|
|
#:configure-flags
|
|
|
|
(list "-DENABLE_GLSL=ON"
|
|
|
|
(string-append "-DPYTHON_LIBRARIES="
|
|
|
|
(assoc-ref %build-inputs "python")
|
|
|
|
"/lib")
|
|
|
|
(string-append "-DPYTHON_INCLUDE_DIRS="
|
|
|
|
(assoc-ref %build-inputs "python")
|
2018-12-16 15:52:52 -05:00
|
|
|
"/include/python"
|
|
|
|
,(version-major+minor
|
|
|
|
(package-version python))))
|
2018-07-18 14:11:16 -04:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-python-lib-path
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; This is necessary to install the Python module in the correct
|
|
|
|
;; directory.
|
|
|
|
(substitute* "libavogadro/src/python/CMakeLists.txt"
|
|
|
|
(("^EXECUTE_PROCESS.*$") "")
|
|
|
|
(("^.*from sys import stdout.*$") "")
|
|
|
|
(("^.*OUTPUT_VARIABLE.*")
|
|
|
|
(string-append "set(PYTHON_LIB_PATH \""
|
|
|
|
(assoc-ref outputs "out")
|
2018-12-16 15:52:52 -05:00
|
|
|
"/lib/python"
|
|
|
|
,(version-major+minor
|
|
|
|
(package-version python))
|
|
|
|
"/site-packages\")")))
|
2018-07-18 14:11:16 -04:00
|
|
|
#t))
|
|
|
|
(add-after 'install 'wrap-program
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
;; Make sure 'avogadro' runs with the correct PYTHONPATH.
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
(string-append
|
|
|
|
(assoc-ref outputs "out")
|
2018-12-16 15:52:52 -05:00
|
|
|
"/lib/python"
|
|
|
|
,(version-major+minor
|
|
|
|
(package-version python))
|
|
|
|
"/site-packages:"
|
2018-07-18 14:11:16 -04:00
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
(wrap-program (string-append out "/bin/avogadro")
|
|
|
|
`("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
|
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("doxygen" ,doxygen)
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
|
|
|
("eigen" ,eigen)
|
|
|
|
("glew" ,glew)
|
|
|
|
("openbabel" ,openbabel)
|
|
|
|
("python" ,python-2)
|
|
|
|
("python-numpy" ,python2-numpy)
|
|
|
|
("python-pyqt" ,python2-pyqt-4)
|
|
|
|
("python-sip" ,python2-sip)
|
|
|
|
("qt" ,qt-4)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(home-page "https://avogadro.cc")
|
|
|
|
(synopsis "Advanced molecule editor")
|
|
|
|
(description
|
|
|
|
"Avogadro is an advanced molecule editor and visualizer designed for use
|
|
|
|
in computational chemistry, molecular modeling, bioinformatics, materials
|
|
|
|
science, and related areas. It offers flexible high quality rendering and a
|
|
|
|
powerful plugin architecture.")
|
|
|
|
(license license:gpl2+)))
|
|
|
|
|
2018-01-05 11:06:22 -05:00
|
|
|
(define-public domainfinder
|
|
|
|
(package
|
|
|
|
(name "domainfinder")
|
|
|
|
(version "2.0.5")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://bitbucket.org/khinsen/"
|
|
|
|
"domainfinder/downloads/DomainFinder-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1z26lsyf7xwnzwjvimmbla7ckipx6p734w7y0jk2a2fzci8fkdcr"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("python-mmtk" ,python2-mmtk)))
|
|
|
|
(arguments
|
|
|
|
`(#:python ,python-2
|
|
|
|
;; No test suite
|
|
|
|
#:tests? #f))
|
2020-03-05 03:37:05 -05:00
|
|
|
(home-page "http://dirac.cnrs-orleans.fr/DomainFinder.html")
|
2018-01-05 11:06:22 -05:00
|
|
|
(synopsis "Analysis of dynamical domains in proteins")
|
|
|
|
(description "DomainFinder is an interactive program for the determination
|
|
|
|
and characterization of dynamical domains in proteins. It can infer dynamical
|
|
|
|
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)))
|
2018-01-05 11:14:24 -05:00
|
|
|
|
2018-07-13 09:35:27 -04:00
|
|
|
(define-public inchi
|
|
|
|
(package
|
|
|
|
(name "inchi")
|
|
|
|
(version "1.05")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.inchi-trust.org/download/"
|
|
|
|
(string-join (string-split version #\.) "")
|
|
|
|
"/INCHI-1-SRC.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"081pcjx1z5jm23fs1pl2r3bccia0ww8wfkzcjpb7byhn7b513hsa"))
|
|
|
|
(file-name (string-append name "-" version ".zip"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f ; no check target
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
(add-before 'build 'chdir-to-build-directory
|
|
|
|
(lambda _ (chdir "INCHI_EXE/inchi-1/gcc") #t))
|
|
|
|
(add-after 'build 'build-library
|
|
|
|
(lambda _
|
|
|
|
(chdir "../../../INCHI_API/libinchi/gcc")
|
|
|
|
(invoke "make")))
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(doc (string-append out "/share/doc/inchi"))
|
|
|
|
(include-dir (string-append out "/include/inchi"))
|
|
|
|
(lib (string-append out "/lib/inchi"))
|
|
|
|
(inchi-doc (assoc-ref inputs "inchi-doc"))
|
|
|
|
(unzip (string-append (assoc-ref inputs "unzip")
|
|
|
|
"/bin/unzip")))
|
|
|
|
(chdir "../../..")
|
|
|
|
;; Install binary.
|
|
|
|
(with-directory-excursion "INCHI_EXE/bin/Linux"
|
|
|
|
(rename-file "inchi-1" "inchi")
|
|
|
|
(install-file "inchi" bin))
|
|
|
|
;; Install libraries.
|
|
|
|
(with-directory-excursion "INCHI_API/bin/Linux"
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file lib))
|
|
|
|
(find-files "." "libinchi\\.so\\.1\\.*")))
|
|
|
|
;; Install header files.
|
|
|
|
(with-directory-excursion "INCHI_BASE/src"
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file include-dir))
|
|
|
|
(find-files "." "\\.h$")))
|
|
|
|
;; Install documentation.
|
|
|
|
(mkdir-p doc)
|
|
|
|
(invoke unzip "-j" "-d" doc inchi-doc)
|
|
|
|
#t))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("unzip" ,unzip)
|
|
|
|
("inchi-doc"
|
|
|
|
,(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.inchi-trust.org/download/"
|
|
|
|
(string-join (string-split version #\.) "")
|
|
|
|
"/INCHI-1-DOC.zip"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1id1qb2y4lwsiw91qr2yqpn6kxbwjwhjk0hb2rwk4fxhdqib6da6"))
|
|
|
|
(file-name (string-append name "-" version ".zip"))))))
|
|
|
|
(home-page "https://www.inchi-trust.org")
|
|
|
|
(synopsis "Utility for manipulating machine-readable chemical structures")
|
|
|
|
(description
|
|
|
|
"The @dfn{InChI} (IUPAC International Chemical Identifier) algorithm turns
|
|
|
|
chemical structures into machine-readable strings of information. InChIs are
|
|
|
|
unique to the compound they describe and can encode absolute stereochemistry
|
|
|
|
making chemicals and chemistry machine-readable and discoverable. A simple
|
|
|
|
analogy is that InChI is the bar-code for chemistry and chemical structures.")
|
|
|
|
(license (license:non-copyleft
|
|
|
|
"file://LICENCE"
|
|
|
|
"See LICENCE in the distribution."))))
|
|
|
|
|
2021-01-22 22:27:21 -05:00
|
|
|
(define-public mmtf-cpp
|
|
|
|
(package
|
|
|
|
(name "mmtf-cpp")
|
|
|
|
(version "1.0.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/rcsb/mmtf-cpp")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"17ylramda69plf5w0v5hxbl4ggkdi5s15z55cv0pljl12yvyva8l"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
;; Tests require the soon-to-be-deprecated version 1 of the catch-framework.
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f))
|
|
|
|
(home-page "https://mmtf.rcsb.org/")
|
|
|
|
(synopsis "C++ API for the Macromolecular Transmission Format")
|
|
|
|
(description "This package is a library for the
|
|
|
|
@acronym{MMTF,macromolecular transmission format}, a binary encoding of
|
|
|
|
biological structures.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2021-01-22 23:44:15 -05:00
|
|
|
(define-public molequeue
|
|
|
|
(package
|
|
|
|
(name "molequeue")
|
|
|
|
(version "0.9.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/OpenChemistry/molequeue/"
|
|
|
|
"releases/download/" version "/molequeue-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1w1fgxzqrb5yxvpmnc3c9ymnvixy0z1nfafkd9whg9zw8nbgl998"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("qtbase" ,qtbase)))
|
|
|
|
(arguments
|
|
|
|
'(#:configure-flags '("-DENABLE_TESTING=ON")
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-tests
|
|
|
|
(lambda _
|
|
|
|
;; TODO: Fix/enable the failing message and clientserver tests.
|
|
|
|
;; In the message test, the floating-point value "5.36893473232" on
|
|
|
|
;; line 165 of molequeue/app/testing/messagetest.cpp should
|
|
|
|
;; (apparently) be truncated, but it is not.
|
|
|
|
(substitute* "molequeue/app/testing/messagetest.cpp"
|
|
|
|
(("5\\.36893473232") "5.36893"))
|
|
|
|
;; It is unclear why the clientserver test fails, so it is
|
|
|
|
;; completely disabled.
|
|
|
|
(substitute* "molequeue/app/testing/CMakeLists.txt"
|
|
|
|
((".*clientserver.*") ""))
|
|
|
|
#t))
|
|
|
|
(add-before 'check 'set-display
|
|
|
|
(lambda _
|
|
|
|
;; Make Qt render "offscreen" for the sake of tests.
|
|
|
|
(setenv "QT_QPA_PLATFORM" "offscreen")
|
|
|
|
#t)))))
|
|
|
|
(home-page "https://www.openchemistry.org/projects/molequeue/")
|
|
|
|
(synopsis "Application for coordinating computational jobs")
|
|
|
|
(description "MoleQueue is a system-tray resident desktop application for
|
|
|
|
abstracting, managing, and coordinating the execution of tasks both locally and
|
|
|
|
on remote computational resources. Users can set up local and remote queues
|
|
|
|
that describe where the task will be executed. Each queue can have programs,
|
|
|
|
with templates to facilitate the execution of the program. Input files can be
|
|
|
|
staged, and output files collected using a standard interface.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2018-01-05 11:14:24 -05:00
|
|
|
(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
|
2019-11-19 13:49:27 -05:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/khinsen/nMOLDYN3")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
2018-01-05 11:14:24 -05:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-11-19 13:49:27 -05:00
|
|
|
"016h4bqg419p6s7bcx55q5iik91gqmk26hbnfgj2j6zl0j36w51r"))))
|
2018-01-05 11:14:24 -05:00
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("python-matplotlib" ,(with-numpy-1.8 python2-matplotlib))
|
2018-03-16 11:50:14 -04:00
|
|
|
("python-scientific" ,python2-scientific)
|
|
|
|
("netcdf" ,netcdf)
|
2018-01-05 11:14:24 -05:00
|
|
|
("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'\\] = ''")
|
2020-04-26 06:42:35 -04:00
|
|
|
(format #f "PREFERENCES['acroread_path'] = '~a'"
|
2018-01-05 11:14:24 -05:00
|
|
|
(which "gv")))
|
|
|
|
(("PREFERENCES\\['ncdump_path'\\] = ''")
|
2020-04-26 06:42:35 -04:00
|
|
|
(format #f "PREFERENCES['ncdump_path'] = '~a'"
|
2018-01-05 11:14:24 -05:00
|
|
|
(which "ncdump")))
|
|
|
|
(("PREFERENCES\\['ncgen_path'\\] = ''")
|
2020-04-26 06:42:35 -04:00
|
|
|
(format #f "PREFERENCES['ncgen_path'] = '~a'"
|
2018-01-05 11:14:24 -05:00
|
|
|
(which "ncgen3")))
|
|
|
|
(("PREFERENCES\\['task_manager_path'\\] = ''")
|
2020-04-26 06:42:35 -04:00
|
|
|
(format #f "PREFERENCES['task_manager_path'] = '~a'"
|
2018-01-05 11:14:24 -05:00
|
|
|
(which "task_manager")))
|
|
|
|
;; Show documentation as PDF
|
|
|
|
(("PREFERENCES\\['documentation_style'\\] = 'html'")
|
|
|
|
"PREFERENCES['documentation_style'] = 'pdf'") ))))))
|
2020-03-05 03:31:56 -05:00
|
|
|
(home-page "http://dirac.cnrs-orleans.fr/nMOLDYN.html")
|
2018-01-05 11:14:24 -05:00
|
|
|
(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)))
|
2018-07-13 22:44:54 -04:00
|
|
|
|
2020-05-03 18:32:38 -04:00
|
|
|
(define-public tng
|
|
|
|
(package
|
|
|
|
(name "tng")
|
|
|
|
(version "1.8.2")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
(url "https://github.com/gromacs/tng")
|
2020-05-03 18:32:38 -04:00
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1apf2n8nb34z09xarj7k4jgriq283l769sakjmj5aalpbilvai4q"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("zlib" ,zlib)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'remove-bundled-zlib
|
|
|
|
(lambda _
|
|
|
|
(delete-file-recursively "external")
|
|
|
|
#t))
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(invoke "../build/bin/tests/tng_testing")
|
|
|
|
#t)))))
|
|
|
|
(home-page "https://github.com/gromacs/tng")
|
|
|
|
(synopsis "Trajectory Next Generation binary format manipulation library")
|
|
|
|
(description "TRAJNG (Trajectory next generation) is a program library for
|
|
|
|
handling molecular dynamics (MD) trajectories. It can store coordinates, and
|
|
|
|
optionally velocities and the H-matrix. Coordinates and velocities are
|
|
|
|
stored with user-specified precision.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2020-05-03 18:39:36 -04:00
|
|
|
(define-public gromacs
|
|
|
|
(package
|
|
|
|
(name "gromacs")
|
|
|
|
(version "2020.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://ftp.gromacs.org/pub/gromacs/gromacs-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1wyjgcdl30wy4hy6jvi9lkq53bqs9fgfq6fri52dhnb3c76y8rbl"))
|
|
|
|
;; Our version of tinyxml2 is far newer than the bundled one and
|
|
|
|
;; require fixing `testutils' code. See patch header for more info
|
|
|
|
(patches (search-patches "gromacs-tinyxml2.patch"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list "-DGMX_DEVELOPER_BUILD=on" ; Needed to run tests
|
|
|
|
;; Unbundling
|
|
|
|
"-DGMX_USE_LMFIT=EXTERNAL"
|
|
|
|
"-DGMX_BUILD_OWN_FFTW=off"
|
|
|
|
"-DGMX_EXTERNAL_BLAS=on"
|
|
|
|
"-DGMX_EXTERNAL_LAPACK=on"
|
|
|
|
"-DGMX_EXTERNAL_TNG=on"
|
|
|
|
"-DGMX_EXTERNAL_ZLIB=on"
|
|
|
|
"-DGMX_EXTERNAL_TINYXML2=on"
|
|
|
|
(string-append "-DTinyXML2_DIR="
|
|
|
|
(assoc-ref %build-inputs "tinyxml2"))
|
|
|
|
;; Workaround for cmake/FindSphinx.cmake version parsing that does
|
|
|
|
;; not understand the guix-wrapped `sphinx-build --version' answer
|
|
|
|
(string-append "-DSPHINX_EXECUTABLE_VERSION="
|
|
|
|
,(package-version python-sphinx)))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fixes
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Still bundled: part of gromacs, source behind registration
|
|
|
|
;; but free software anyways
|
|
|
|
;;(delete-file-recursively "src/external/vmd_molfile")
|
|
|
|
;; Still bundled: threads-based OpenMPI-compatible fallback
|
|
|
|
;; designed to be bundled like that
|
|
|
|
;;(delete-file-recursively "src/external/thread_mpi")
|
|
|
|
;; Unbundling
|
|
|
|
(delete-file-recursively "src/external/lmfit")
|
|
|
|
(delete-file-recursively "src/external/clFFT")
|
|
|
|
(delete-file-recursively "src/external/fftpack")
|
|
|
|
(delete-file-recursively "src/external/build-fftw")
|
|
|
|
(delete-file-recursively "src/external/tng_io")
|
|
|
|
(delete-file-recursively "src/external/tinyxml2")
|
|
|
|
(delete-file-recursively "src/external/googletest")
|
|
|
|
(copy-recursively (assoc-ref inputs "googletest-source")
|
|
|
|
"src/external/googletest")
|
|
|
|
;; This test warns about the build host hardware, disable
|
|
|
|
(substitute* "src/gromacs/hardware/tests/hardwaretopology.cpp"
|
|
|
|
(("TEST\\(HardwareTopologyTest, HwlocExecute\\)")
|
|
|
|
"void __guix_disabled()"))
|
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("doxygen" ,doxygen)
|
|
|
|
("googletest-source" ,(package-source googletest))
|
|
|
|
("graphviz" ,graphviz)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python)
|
|
|
|
("python-pygments" ,python-pygments)
|
|
|
|
("python-sphinx" ,python-sphinx)))
|
|
|
|
(inputs
|
|
|
|
`(("fftwf" ,fftwf)
|
|
|
|
("hwloc" ,hwloc-2 "lib")
|
|
|
|
("lmfit" ,lmfit)
|
|
|
|
("openblas" ,openblas)
|
|
|
|
("perl" ,perl)
|
|
|
|
("tinyxml2" ,tinyxml2)
|
|
|
|
("tng" ,tng)))
|
|
|
|
(home-page "http://www.gromacs.org/")
|
|
|
|
(synopsis "Molecular dynamics software package")
|
|
|
|
(description "GROMACS is a versatile package to perform molecular dynamics,
|
|
|
|
i.e. simulate the Newtonian equations of motion for systems with hundreds to
|
|
|
|
millions of particles. It is primarily designed for biochemical molecules like
|
|
|
|
proteins, lipids and nucleic acids that have a lot of complicated bonded
|
|
|
|
interactions, but since GROMACS is extremely fast at calculating the nonbonded
|
|
|
|
interactions (that usually dominate simulations) many groups are also using it
|
|
|
|
for research on non-biological systems, e.g. polymers. GROMACS supports all the
|
|
|
|
usual algorithms you expect from a modern molecular dynamics implementation.")
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
2018-07-13 22:44:54 -04:00
|
|
|
(define-public openbabel
|
|
|
|
(package
|
|
|
|
(name "openbabel")
|
|
|
|
(version "2.4.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/" name "/" name "/"
|
|
|
|
version "/" name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-07-21 12:47:34 -04:00
|
|
|
"1z3d6xm70dpfikhwdnbzc66j2l49vq105ch041wivrfz5ic3ch90"))
|
|
|
|
(patches
|
|
|
|
(search-patches "openbabel-fix-crash-on-nwchem-output.patch"))))
|
2018-07-13 22:44:54 -04:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags
|
|
|
|
(list "-DOPENBABEL_USE_SYSTEM_INCHI=ON"
|
|
|
|
(string-append "-DINCHI_LIBRARY="
|
|
|
|
(assoc-ref %build-inputs "inchi")
|
|
|
|
"/lib/inchi/libinchi.so.1")
|
|
|
|
(string-append "-DINCHI_INCLUDE_DIR="
|
|
|
|
(assoc-ref %build-inputs "inchi") "/include/inchi"))
|
|
|
|
#:test-target "test"))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("eigen" ,eigen)
|
|
|
|
("inchi" ,inchi)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(home-page "http://openbabel.org/wiki/Main_Page")
|
|
|
|
(synopsis "Chemistry data manipulation toolbox")
|
|
|
|
(description
|
|
|
|
"Open Babel is a chemical toolbox designed to speak the many languages of
|
|
|
|
chemical data. It's a collaborative project allowing anyone to search, convert,
|
|
|
|
analyze, or store data from molecular modeling, chemistry, solid-state
|
|
|
|
materials, biochemistry, or related areas.")
|
|
|
|
(license license:gpl2)))
|
2021-01-22 21:32:41 -05:00
|
|
|
|
|
|
|
(define-public spglib
|
|
|
|
(package
|
|
|
|
(name "spglib")
|
|
|
|
(version "1.16.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/spglib/spglib")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(sha256
|
|
|
|
(base32 "1kzc956m1pnazhz52vspqridlw72wd8x5l3dsilpdxl491aa2nws"))
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:test-target "check"
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-header-install-dir
|
|
|
|
(lambda _
|
|
|
|
;; As of the writing of this package, CMake and GNU build systems
|
|
|
|
;; install the header to two different location. This patch makes
|
|
|
|
;; the CMake build system's choice of header directory compatible
|
|
|
|
;; with the GNU build system's choice and with what avogadrolibs
|
|
|
|
;; expects.
|
|
|
|
;; See https://github.com/spglib/spglib/issues/75 and the relevant
|
|
|
|
;; part of https://github.com/OpenChemistry/avogadroapp/issues/97.
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("\\$\\{CMAKE_INSTALL_INCLUDEDIR\\}" include-dir)
|
|
|
|
(string-append include-dir "/spglib")))
|
|
|
|
#t)))))
|
|
|
|
(home-page "https://spglib.github.io/spglib/index.html")
|
|
|
|
(synopsis "Library for crystal symmetry search")
|
|
|
|
(description "Spglib is a library for finding and handling crystal
|
|
|
|
symmetries written in C. Spglib can be used to:
|
|
|
|
|
|
|
|
@enumerate
|
|
|
|
@item Find symmetry operations
|
|
|
|
@item Identify space-group type
|
|
|
|
@item Wyckoff position assignment
|
|
|
|
@item Refine crystal structure
|
|
|
|
@item Find a primitive cell
|
|
|
|
@item Search irreducible k-points
|
|
|
|
@end enumerate")
|
|
|
|
(license license:bsd-3)))
|