nixpkgs-suyu/pkgs/development/python-modules/celery/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2019-09-13 22:03:18 +02:00
{ lib, buildPythonPackage, fetchPypi, libredirect
, case, pytest, boto3, moto, kombu, billiard, pytz, anyjson, amqp, eventlet
2018-03-28 20:55:39 +02:00
}:
buildPythonPackage rec {
2018-01-09 11:34:35 +01:00
pname = "celery";
2020-03-18 20:46:23 +01:00
version = "4.4.2";
2018-01-09 11:34:35 +01:00
src = fetchPypi {
inherit pname version;
2020-03-18 20:46:23 +01:00
sha256 = "0ps1c6ill7q0m5kzb87hisgshdk3kzpa6cvcjch1d1wa07whp2hh";
2018-01-09 11:34:35 +01:00
};
2019-03-04 00:20:00 +01:00
postPatch = ''
substituteInPlace requirements/test.txt \
2019-05-12 20:31:45 +02:00
--replace "moto==1.3.7" moto \
2019-03-04 00:20:00 +01:00
--replace "pytest>=4.3.1,<4.4.0" pytest
'';
2019-09-13 22:03:18 +02:00
# ignore test that's incompatible with pytest5
# test_eventlet touches network
2019-12-22 20:34:42 +01:00
# test_mongodb requires pymongo
2019-09-13 22:03:18 +02:00
checkPhase = ''
2020-03-18 20:46:23 +01:00
pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply' \
2019-12-22 20:34:42 +01:00
--ignore=t/unit/concurrency/test_eventlet.py \
--ignore=t/unit/backends/test_mongodb.py
2018-01-09 11:34:35 +01:00
'';
checkInputs = [ case pytest boto3 moto ];
2018-01-09 11:34:35 +01:00
propagatedBuildInputs = [ kombu billiard pytz anyjson amqp eventlet ];
2019-09-13 22:03:18 +02:00
meta = with lib; {
homepage = "https://github.com/celery/celery/";
2018-01-09 11:34:35 +01:00
description = "Distributed task queue";
license = licenses.bsd3;
};
}