summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorYannik Stradmann <49203055+ystradmann@users.noreply.github.com>2020-03-19 17:15:19 +0100
committerGitHub <noreply@github.com>2020-03-19 11:15:19 -0500
commitbfa72ed9261ac3df66ce53f92f86ae1548be0731 (patch)
tree7dd6e9968d5a858cbcb346b18b26093bce4744b1 /var
parent3255eaba0dddca0a9e224f9e3e745dc6ff956b1d (diff)
downloadspack-bfa72ed9261ac3df66ce53f92f86ae1548be0731.tar.gz
spack-bfa72ed9261ac3df66ce53f92f86ae1548be0731.tar.bz2
spack-bfa72ed9261ac3df66ce53f92f86ae1548be0731.tar.xz
spack-bfa72ed9261ac3df66ce53f92f86ae1548be0731.zip
Add package: py-deprecated (#15571)
https://github.com/tantale/deprecated
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-deprecated/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-deprecated/package.py b/var/spack/repos/builtin/packages/py-deprecated/package.py
new file mode 100644
index 0000000000..7d1fe4af93
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-deprecated/package.py
@@ -0,0 +1,20 @@
+# 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 PyDeprecated(PythonPackage):
+ """Python @deprecated decorator to deprecate old python classes,
+ functions or methods."""
+
+ homepage = "https://github.com/tantale/deprecated"
+ url = "https://github.com/tantale/deprecated/archive/v1.2.7.tar.gz"
+
+ version("1.2.7", sha256="7db3c814ddcac9d79c5bae8a0e82a5bba55cb8e46f3d611d0d8611c34a72a783")
+
+ depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
+ depends_on("py-wrapt@1.10:1.99999", type=("build", "run"))
+ depends_on("py-setuptools", type="build")