summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoriarspider <iarspider@gmail.com>2020-10-22 05:32:29 +0200
committerGitHub <noreply@github.com>2020-10-21 22:32:29 -0500
commit74e93aff416cb06d88cf6d55fd381d8fc69a6eed (patch)
tree7c7b433d2653c8b923a396af0c5f921ac5162d0a /var
parent8060cca4946cc071ba34e067edeee029d27531a2 (diff)
downloadspack-74e93aff416cb06d88cf6d55fd381d8fc69a6eed.tar.gz
spack-74e93aff416cb06d88cf6d55fd381d8fc69a6eed.tar.bz2
spack-74e93aff416cb06d88cf6d55fd381d8fc69a6eed.tar.xz
spack-74e93aff416cb06d88cf6d55fd381d8fc69a6eed.zip
Add Gosam (#19401)
* Add recipe for qgraf * Revert "Add recipe for qgraf" This reverts commit 76783f73867a32b4a96e980e31a433ed3c0037fd. * Add gosam * Flake-8 * Flake-8 * Delete gosam-1.2.4.patch Remove patch * Remove patch from recipe * Changes from MR Co-authored-by: Ivan Razumov <ivan.razumov@cern.ch>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-gosam/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gosam/package.py b/var/spack/repos/builtin/packages/py-gosam/package.py
new file mode 100644
index 0000000000..75d8cee2a8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-gosam/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyGosam(PythonPackage):
+ """The package GoSam allows for the automated calculation of
+ one-loop amplitudes for multi-particle processes in renormalizable
+ quantum field theories."""
+
+ homepage = "https://gosam.hepforge.org"
+ url = "https://gosam.hepforge.org/downloads/?f=gosam-2.0.4-6d9f1cba.tar.gz"
+
+ version('2.0.4', sha256='faf621c70f66d9dffc16ac5cce66258067f39f686d722a4867eeb759fcde4f44')
+
+ depends_on('form', type='run')
+ depends_on('qgraf', type='run')
+ depends_on('gosam-contrib', type='link')
+ depends_on('python@2.7:2.7.99', type=('build', 'run'))
+
+ def setup_run_environment(self, env):
+ gosam_contrib_lib_dir = self.spec['gosam-contrib'].prefix.lib
+ env.prepend_path('LD_LIBRARY_PATH', gosam_contrib_lib_dir)