# 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)


class PyVcstool(PythonPackage):
    """vcstool enables batch commands on multiple different vcs repositories.

    Currently it supports git, hg, svn and bzr."""

    homepage = "https://github.com/dirk-thomas/vcstool"
    url      = "https://pypi.io/packages/source/v/vcstool/vcstool-0.2.15.tar.gz"

    version('0.2.15', sha256='b1fce6fcef7b117b245a72dc8658a128635749d01dc7e9d1316490f89f9c2fde')

    depends_on('py-pyyaml', type=('build', 'run'))
    depends_on('py-setuptools', type=('build', 'run'))
    depends_on('py-argparse', when='^python@:2.6', type=('build', 'run'))

add new package (#20112)