summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-23 08:49:14 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-23 10:49:14 -0500
commite8f0e6936c52d43095ad20dfced145e01e4a9a9f (patch)
treecf58c8ec9954f19167437588d712a1a9d6bb3140
parent00bb6a0b371a47e25f425650395dce2807256edb (diff)
downloadspack-e8f0e6936c52d43095ad20dfced145e01e4a9a9f.tar.gz
spack-e8f0e6936c52d43095ad20dfced145e01e4a9a9f.tar.bz2
spack-e8f0e6936c52d43095ad20dfced145e01e4a9a9f.tar.xz
spack-e8f0e6936c52d43095ad20dfced145e01e4a9a9f.zip
new package: py-path-py (#12534)
-rw-r--r--var/spack/repos/builtin/packages/py-path-py/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-path-py/package.py b/var/spack/repos/builtin/packages/py-path-py/package.py
new file mode 100644
index 0000000000..428c668acd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-path-py/package.py
@@ -0,0 +1,24 @@
+# Copyright 2013-2019 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 PyPathPy(PythonPackage):
+ """A module wrapper for os.path"""
+
+ homepage = "https://github.com/jaraco/path.py"
+ url = "https://pypi.io/packages/source/p/path.py/path.py-12.0.1.tar.gz"
+
+ version('12.0.1', sha256='9f2169633403aa0423f6ec000e8701dd1819526c62465f5043952f92527fea0f')
+ version('5.2', sha256='9916ae9aa603ce7e131e4ac76c25bcdbf6208f8fe5cc565a5022b85dc9d7022c')
+
+ depends_on('py-setuptools', type='build')
+
+ def url_for_version(self, version):
+ if version >= Version('7.6.1'):
+ return 'https://pypi.io/packages/source/p/path.py/path.py-{0}.tar.gz'.format(version)
+ else:
+ return 'https://github.com/jaraco/path.py/archive/{0}.tar.gz'.format(version)