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 <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-conan/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
iarspider 2022-09-23 10:17:42 +02:00 committed by GitHub
parent 0a050785e9
commit 86958669cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 0 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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")