# 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 PyPytestXdist(PythonPackage):
    """py.test xdist plugin for distributed testing and loop-on-failing mode"""

    homepage = "https://github.com/pytest-dev/pytest-xdist"
    url      = "https://pypi.io/packages/source/p/pytest-xdist/pytest-xdist-1.16.0.tar.gz"

    version('1.16.0', sha256='42e5a1e5da9d7cff3e74b07f8692598382f95624f234ff7e00a3b1237e0feba2')

    depends_on('py-setuptools',    type='build')
    depends_on('py-execnet@1.1:',  type=('build', 'run'))
    depends_on('py-pytest@2.7.0:', type=('build', 'run'))
    depends_on('py-py@1.4.22:',    type=('build', 'run'))

@@ -468,18 +468,18 @@
 xdist-1.
-16
+30
 .0.tar.g
@@ -482,16 +482,113 @@
 ar.gz%22%0A%0A
+    version('1.30.0', sha256='5d1b1d4461518a6023d56dab62fb63670d6f7537f23e2708459a557329accf48')%0A
     vers
@@ -677,16 +677,77 @@
 eba2')%0A%0A
+    depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))%0A
     depe
@@ -871,19 +871,19 @@
 -pytest@
-2.7
+4.4
 .0:', ty
@@ -928,21 +928,69 @@
 y-py
-@1.4.22:',   
+test-forked', type=('build', 'run'))%0A    depends_on('py-six',
  typ

Add latest version of py-pytest-xdist (#13298)