Skip to content

Commit a3d919a

Browse files
committed
python3Packages.celery: build from github
1 parent 49eb7ac commit a3d919a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
click-plugins,
1010
click-repl,
1111
click,
12-
fetchPypi,
12+
fetchFromGitHub,
1313
gevent,
1414
google-cloud-firestore,
1515
google-cloud-storage,
1616
kombu,
1717
moto,
1818
msgpack,
19-
nixosTests,
2019
pymongo,
2120
redis,
2221
pydantic,
@@ -27,7 +26,6 @@
2726
pytest-xdist,
2827
pytestCheckHook,
2928
python-dateutil,
30-
pythonOlder,
3129
pyyaml,
3230
setuptools,
3331
vine,
@@ -38,11 +36,11 @@ buildPythonPackage rec {
3836
version = "5.5.3";
3937
pyproject = true;
4038

41-
disabled = pythonOlder "3.8";
42-
43-
src = fetchPypi {
44-
inherit pname version;
45-
hash = "sha256-bJcq55aMK1KBIn8Bw6P5hAN9IcUSnQe/NVDMKvxrEKU=";
39+
src = fetchFromGitHub {
40+
owner = "celery";
41+
repo = "celery";
42+
tag = "v${version}";
43+
hash = "sha256-+sickqRfSkBxhcO0W9na6Uov4kZ7S5oqpXXKX0iRQ0w=";
4644
};
4745

4846
build-system = [ setuptools ];
@@ -118,12 +116,12 @@ buildPythonPackage rec {
118116

119117
pythonImportsCheck = [ "celery" ];
120118

121-
meta = with lib; {
119+
meta = {
122120
description = "Distributed task queue";
123121
homepage = "https://github.com/celery/celery/";
124122
changelog = "https://github.com/celery/celery/releases/tag/v${version}";
125-
license = licenses.bsd3;
126-
maintainers = with maintainers; [ fab ];
123+
license = lib.licenses.bsd3;
124+
maintainers = with lib.maintainers; [ fab ];
127125
mainProgram = "celery";
128126
};
129127
}

0 commit comments

Comments
 (0)