mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
39 lines
1.3 KiB
Nix
39 lines
1.3 KiB
Nix
{ lib, buildPythonPackage, fetchPypi
|
|
, billiard, click, click-didyoumean, click-plugins, click-repl, kombu, pytz, vine
|
|
, boto3, case, moto, pytest, pytest-celery, pytest-subtests, pytest-timeout
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "celery";
|
|
version = "5.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "4d858a8fe53c07a9f0cbf8cf1da28e8abe5464d0aba5713bf83908e74277734b";
|
|
};
|
|
|
|
propagatedBuildInputs = [ billiard click click-didyoumean click-plugins click-repl kombu pytz vine ];
|
|
|
|
checkInputs = [ boto3 case moto pytest pytest-celery pytest-subtests pytest-timeout ];
|
|
|
|
# ignore test that's incompatible with pytest5
|
|
# test_eventlet touches network
|
|
# test_mongodb requires pymongo
|
|
# test_multi tries to create directories under /var
|
|
checkPhase = ''
|
|
pytest -k 'not restore_current_app_fallback and not msgpack and not on_apply and not pytest' \
|
|
--ignore=t/unit/contrib/test_pytest.py \
|
|
--ignore=t/unit/concurrency/test_eventlet.py \
|
|
--ignore=t/unit/bin/test_multi.py \
|
|
--ignore=t/unit/apps/test_multi.py \
|
|
--ignore=t/unit/backends/test_mongodb.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/celery/celery/";
|
|
description = "Distributed task queue";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|