pythonPackage.celery: fix tests
This commit is contained in:
parent
39ee74629c
commit
47a3a1127f
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect
|
{ lib, buildPythonPackage, fetchPypi, libredirect
|
||||||
, case, pytest, boto3, moto, kombu, billiard, pytz, anyjson, amqp, eventlet
|
, case, pytest, boto3, moto, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -17,19 +17,17 @@ buildPythonPackage rec {
|
|||||||
--replace "pytest>=4.3.1,<4.4.0" pytest
|
--replace "pytest>=4.3.1,<4.4.0" pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
# ignore test that's incompatible with pytest5
|
||||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
# test_eventlet touches network
|
||||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
checkPhase = ''
|
||||||
LD_PRELOAD=${libredirect}/lib/libredirect.so
|
pytest -k 'not restore_current_app_fallback' \
|
||||||
'';
|
--ignore=t/unit/concurrency/test_eventlet.py
|
||||||
postCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
|
||||||
unset NIX_REDIRECTS LD_PRELOAD
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ case pytest boto3 moto ];
|
checkInputs = [ case pytest boto3 moto ];
|
||||||
propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
|
propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = https://github.com/celery/celery/;
|
homepage = https://github.com/celery/celery/;
|
||||||
description = "Distributed task queue";
|
description = "Distributed task queue";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user