<filename>var/spack/repos/builtin/packages/py-yccp/package.py
from spack import *


class PyYccp(PythonPackage):
    """YAML with pre-Computed Common Parameters is a library for easy
    parameter-file handling. It allows for simple computations on common
    parameters which can then be referenced in the rest of the parameter
    file.
    """

    homepage = "https://github.com/obreitwi/yccp"
    url      = "https://github.com/obreitwi/yccp"

    version('1.0.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('0.5.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('0.4.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('master', git="https://github.com/obreitwi/yccp.git")

    depends_on('python@3:', when="@1.0.0:")
    depends_on('python@:2.999.999', when="@:0.999.999")
    depends_on('pkgconfig', type="build")
    depends_on('py-setuptools', type="build")
    depends_on('py-numpy')
    depends_on('py-pyyaml')

<filename>var/spack/repos/builtin/packages/py-yccp/package.py
from spack import *


class PyYccp(PythonPackage):
    """YAML with pre-Computed Common Parameters is a library for easy
    parameter-file handling. It allows for simple computations on common
    parameters which can then be referenced in the rest of the parameter
    file.
    """

    homepage = "https://github.com/obreitwi/yccp"
    url      = "https://github.com/obreitwi/yccp"

    version('1.0.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('0.5.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('0.4.0', git="https://github.com/obreitwi/yccp.git",
            commit="<PASSWORD>")
    version('master', git="https://github.com/obreitwi/yccp.git")

    depends_on('python@3:', when="@1.0.0:")
    depends_on('python@:2.999.999', when="@:0.999.999")
    depends_on('pkgconfig', type="build")
    depends_on('py-setuptools', type="build")
    depends_on('py-numpy')
    depends_on('py-pyyaml')

YAML with pre-Computed Common Parameters is a library for easy     parameter-file handling. It allows for simple computations on common     parameters which can then be referenced in the rest of the parameter     file.