python.pkgs.sqlalchemy: use pytest_30 and don't use pytest_xdist

This commit is contained in:
Frederik Rietdijk 2017-08-25 19:03:41 +02:00
parent 78c7b40062
commit 2923300a5f

View File

@ -1,7 +1,7 @@
{ lib { lib
, fetchPypi , fetchPypi
, buildPythonPackage , buildPythonPackage
, pytest , pytest_30
, mock , mock
, pytest_xdist , pytest_xdist
, isPy3k , isPy3k
@ -18,12 +18,12 @@ buildPythonPackage rec {
sha256 = "2a98ac87b30eaa2bee1f1044848b9590e476e7f93d033c6542e60b993a5cf898"; sha256 = "2a98ac87b30eaa2bee1f1044848b9590e476e7f93d033c6542e60b993a5cf898";
}; };
checkInputs = [ pytest mock pytest_xdist ] checkInputs = [
++ lib.optional (!isPy3k) pysqlite; pytest_30
mock
# Test-only dependency pysqlite doesn't build on Python 3. This isn't an # Disable pytest_xdist tests for now, because our version seems to be too new.
# acceptable reason to make all dependents unavailable on Python 3 as well # pytest_xdist
#doCheck = !(isPyPy || isPy3k); ] ++ lib.optional (!isPy3k) pysqlite;
checkPhase = '' checkPhase = ''
py.test py.test