python.pkgs.hypothesis: add pytest_xdist as a checkInputs dependency

without this py.test doesn't recognize the -n flag and fails
This commit is contained in:
Robert Scott 2017-05-29 02:00:50 +01:00
parent 868529b2ce
commit 7bbb9824ac

View File

@ -1,6 +1,6 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, python
, pythonOlder, pythonAtLeast, enum34
, doCheck ? true, pytest, flake8, flaky
, doCheck ? true, pytest, pytest_xdist, flake8, flaky
}:
buildPythonPackage rec {
# http://hypothesis.readthedocs.org/en/latest/packaging.html
@ -21,7 +21,7 @@ buildPythonPackage rec {
sha256 = "1s911pd3y9hvk0hq2fr6i68dqv1ciagryhgp13wgyfqh8hz8j6zv";
};
checkInputs = stdenv.lib.optionals doCheck [ pytest flake8 flaky ];
checkInputs = stdenv.lib.optionals doCheck [ pytest pytest_xdist flake8 flaky ];
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
inherit doCheck;