python3Packages.celery: fix build

This commit is contained in:
Orivej Desh 2020-12-07 10:52:35 +00:00
parent abf8d39026
commit 466a19e266

View File

@ -1,5 +1,6 @@
{ lib, buildPythonPackage, fetchPypi, libredirect { lib, buildPythonPackage, fetchPypi
, case, pytest, boto3, moto, kombu, billiard, pytz, future, vine , billiard, click, click-didyoumean, click-repl, kombu, pytz, vine
, boto3, case, moto, pytest, pytest-celery, pytest-subtests, pytest-timeout
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -12,13 +13,14 @@ buildPythonPackage rec {
}; };
postPatch = '' postPatch = ''
substituteInPlace requirements/default.txt \
--replace "kombu>=4.6.10,<4.7" "kombu"
substituteInPlace requirements/test.txt \ substituteInPlace requirements/test.txt \
--replace "moto==1.3.7" moto \ --replace "moto==1.3.7" moto
--replace "pytest>=4.3.1,<4.4.0" pytest
''; '';
propagatedBuildInputs = [ billiard click click-didyoumean click-repl kombu pytz vine ];
checkInputs = [ boto3 case moto pytest pytest-celery pytest-subtests pytest-timeout ];
# ignore test that's incompatible with pytest5 # ignore test that's incompatible with pytest5
# test_eventlet touches network # test_eventlet touches network
# test_mongodb requires pymongo # test_mongodb requires pymongo
@ -32,9 +34,6 @@ buildPythonPackage rec {
--ignore=t/unit/backends/test_mongodb.py --ignore=t/unit/backends/test_mongodb.py
''; '';
checkInputs = [ case pytest boto3 moto ];
propagatedBuildInputs = [ kombu billiard pytz future vine ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/celery/celery/"; homepage = "https://github.com/celery/celery/";
description = "Distributed task queue"; description = "Distributed task queue";