From 86958669cf52f36efc10fb71bb52e579c0ea0e48 Mon Sep 17 00:00:00 2001 From: iarspider Date: Fri, 23 Sep 2022 10:17:42 +0200 Subject: New packages: py-conan, py-node-semver, py-patch-ng (#32753) * New packages: py-conan, py-node-semver, py-patch-ng * Update var/spack/repos/builtin/packages/py-conan/package.py Co-authored-by: Adam J. Stewart * Update var/spack/repos/builtin/packages/py-conan/package.py Co-authored-by: Adam J. Stewart Co-authored-by: Adam J. Stewart --- .../repos/builtin/packages/py-conan/package.py | 34 ++++++++++++++++++++++ .../builtin/packages/py-node-semver/package.py | 19 ++++++++++++ .../repos/builtin/packages/py-patch-ng/package.py | 17 +++++++++++ 3 files changed, 70 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-conan/package.py create mode 100644 var/spack/repos/builtin/packages/py-node-semver/package.py create mode 100644 var/spack/repos/builtin/packages/py-patch-ng/package.py (limited to 'var/spack/repos') diff --git a/var/spack/repos/builtin/packages/py-conan/package.py b/var/spack/repos/builtin/packages/py-conan/package.py new file mode 100644 index 0000000000..64b1516692 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-conan/package.py @@ -0,0 +1,34 @@ +# Copyright 2013-2022 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.package import * + + +class PyConan(PythonPackage): + """Conan C/C++ package manager""" + + homepage = "https://conan.io/" + pypi = "conan/conan-1.52.0.tar.gz" + + version("1.52.0", sha256="184761f16d00fde17615e60125d2f14fca692ffba7666cc7d6d834fc3858cf82") + + depends_on("python@3.6:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-requests@2.25:2", type=("build", "run")) + depends_on("py-urllib3@1.26.6:1.26", type=("build", "run")) + depends_on("py-colorama@0.3.3:0.4", type=("build", "run")) + depends_on("py-pyyaml@3.11:6.0", type=("build", "run")) + depends_on("py-patch-ng@1.17.4:1.17", type=("build", "run")) + depends_on("py-fasteners@0.14.1:", type=("build", "run")) + depends_on("py-six@1.10.0:1.16.0", type=("build", "run")) + depends_on("py-node-semver@0.6.1", type=("build", "run")) + depends_on("py-distro@1.0.2:1.6.0", type=("build", "run"), when="platform=linux") + depends_on("py-pygments@2.0:2", type=("build", "run")) + depends_on("py-tqdm@4.28.1:4", type=("build", "run")) + depends_on("py-jinja2@2.9:2", type=("build", "run"), when="^python@:2.7") + depends_on("py-markupsafe@:2.0.1", type=("build", "run"), when="^python@:2.7") + depends_on("py-jinja2@3.0:3", type=("build", "run"), when="^python@3:") + depends_on("py-python-dateutil@2.7.0:2", type=("build", "run")) + depends_on("py-configparser@3.5:", type=("build", "run"), when="^python@:2.7") diff --git a/var/spack/repos/builtin/packages/py-node-semver/package.py b/var/spack/repos/builtin/packages/py-node-semver/package.py new file mode 100644 index 0000000000..c7674df4bb --- /dev/null +++ b/var/spack/repos/builtin/packages/py-node-semver/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2022 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.package import * + + +class PyNodeSemver(PythonPackage): + """python version of node-semver (https://github.com/isaacs/node-semver)""" + + homepage = "https://github.com/podhmo/python-semver" + pypi = "node-semver/node-semver-0.8.1.tar.gz" + + version("0.8.1", sha256="281600d009606f4f63ddcbe148992e235b39a69937b9c20359e2f4a2adbb1e00") + version("0.6.1", sha256="4016f7c1071b0493f18db69ea02d3763e98a633606d7c7beca811e53b5ac66b7") + + depends_on("python@3:", type=("build", "run")) + depends_on("py-setuptools", type="build") diff --git a/var/spack/repos/builtin/packages/py-patch-ng/package.py b/var/spack/repos/builtin/packages/py-patch-ng/package.py new file mode 100644 index 0000000000..99666c7535 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-patch-ng/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2022 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.package import * + + +class PyPatchNg(PythonPackage): + """Library to parse and apply unified diffs.""" + + homepage = "https://github.com/conan-io/python-patch" + pypi = "patch-ng/patch-ng-1.17.4.tar.gz" + + version("1.17.4", sha256="627abc5bd723c8b481e96849b9734b10065426224d4d22cd44137004ac0d4ace") + + depends_on("py-setuptools", type="build") -- cgit v1.2.3-60-g2f50