summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-climate/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-climate/package.py b/var/spack/repos/builtin/packages/py-climate/package.py
new file mode 100644
index 0000000000..f207537f94
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-climate/package.py
@@ -0,0 +1,27 @@
+# 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 PyClimate(PythonPackage):
+ """Command line arguments parsing"""
+
+ homepage = "https://pypi.org/project/climate/"
+ url = 'https://pypi.io/packages/py3/c/climate/climate-0.1.0-py3-none-any.whl'
+
+ version('0.1.0', sha256='01026c764b34d8204b8f527a730ef667fa5827fca765993ff1ed3e9dab2c11ae', expand=False)
+
+ depends_on('python@3.7:3', type=('build', 'run'))
+ depends_on('py-wheel', type='build')
+ depends_on('py-pip', type='build')
+
+ phases = ['install']
+
+ # copied from py-azureml-core
+ def install(self, spec, prefix):
+ pip = which('pip')
+ pip('install', '--no-deps', self.stage.archive_file,
+ '--prefix={0}'.format(prefix))