summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-glmnet/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-glmnet/package.py b/var/spack/repos/builtin/packages/py-glmnet/package.py
new file mode 100644
index 0000000000..4f881a392e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-glmnet/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2021 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 PyGlmnet(PythonPackage):
+ """
+ This is a Python wrapper for the fortran library used in the R package
+ glmnet.
+ """
+
+ homepage = "https://github.com/civisanalytics/python-glmnet"
+ pypi = "glmnet/glmnet-2.2.1.tar.gz"
+
+ version('2.2.1', sha256='3222bca2e901b3f60c2dc22df7aeba6bb9c7b6451b44cbbe1b91084b66f14481')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools', type=('build'))
+
+ depends_on('py-numpy@1.9.2:', type=('build', 'run'))
+ depends_on('py-scikit-learn@0.18.0:', type=('build', 'run'))
+ depends_on('py-scipy@0.14.1:', type=('build', 'run'))
+ depends_on('py-joblib@0.14.1:', type=('build', 'run'))