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

36 lines
963 B
Nix
Raw Normal View History

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