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:
parent
868529b2ce
commit
7bbb9824ac
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python
|
{ stdenv, buildPythonPackage, fetchFromGitHub, python
|
||||||
, pythonOlder, pythonAtLeast, enum34
|
, pythonOlder, pythonAtLeast, enum34
|
||||||
, doCheck ? true, pytest, flake8, flaky
|
, doCheck ? true, pytest, pytest_xdist, flake8, flaky
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
# http://hypothesis.readthedocs.org/en/latest/packaging.html
|
# http://hypothesis.readthedocs.org/en/latest/packaging.html
|
||||||
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1s911pd3y9hvk0hq2fr6i68dqv1ciagryhgp13wgyfqh8hz8j6zv";
|
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 ];
|
propagatedBuildInputs = stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
Loading…
Reference in New Issue
Block a user