python.pkgs.celery: fix tests
This commit is contained in:
parent
5d59194820
commit
013ba39557
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, iana-etc, libredirect,
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, iana-etc, libredirect,
|
||||||
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
pytest, case, kombu, billiard, pytz, anyjson, amqp, eventlet
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -11,6 +11,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "ff727c115533edbc7b81b2b4ba1ec88d1c2fc4836e1e2f4c3c33a76ff53e5d7f";
|
sha256 = "ff727c115533edbc7b81b2b4ba1ec88d1c2fc4836e1e2f4c3c33a76ff53e5d7f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Skip test_RedisBackend.test_timeouts_in_url_coerced
|
||||||
|
# See https://github.com/celery/celery/pull/4847
|
||||||
|
patches = fetchpatch {
|
||||||
|
url = https://github.com/celery/celery/commit/b2668607c909c61becd151905b4525190c19ff4a.patch;
|
||||||
|
sha256 = "11w0z2ycyh8kccj4y69zb7bxppiipcwwigg6jn1q9yrcsvz170jq";
|
||||||
|
};
|
||||||
|
|
||||||
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
|
||||||
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
preCheck = stdenv.lib.optionalString stdenv.isLinux ''
|
||||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user