btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / django-celery-beat / default.nix
blob64127acc69234f0ccc095d4f3d04804d6104a2b7
2   lib,
3   buildPythonPackage,
4   celery,
5   cron-descriptor,
6   django-timezone-field,
7   ephem,
8   fetchFromGitHub,
9   pytest-django,
10   pytest-timeout,
11   pytestCheckHook,
12   python-crontab,
13   pythonOlder,
14   setuptools,
15   tzdata,
18 buildPythonPackage rec {
19   pname = "django-celery-beat";
20   version = "2.7.0";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "celery";
27     repo = "django-celery-beat";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-XWcmKQXNw8eoGkld77E3rHpR9ofa1i2qO/JI8Hnpi9M=";
30   };
32   pythonRelaxDeps = [ "django" ];
34   build-system = [ setuptools ];
36   dependencies = [
37     cron-descriptor
38     python-crontab
39     celery
40     django-timezone-field
41     tzdata
42   ];
44   nativeCheckInputs = [
45     ephem
46     pytest-timeout
47     pytest-django
48     pytestCheckHook
49   ];
51   disabledTestPaths = [
52     # Connection error
53     "t/unit/test_schedulers.py"
54   ];
56   pythonImportsCheck = [ "django_celery_beat" ];
58   meta = with lib; {
59     description = "Celery Periodic Tasks backed by the Django ORM";
60     homepage = "https://github.com/celery/django-celery-beat";
61     changelog = "https://github.com/celery/django-celery-beat/releases/tag/v${version}";
62     license = licenses.bsd3;
63     maintainers = with maintainers; [ onny ];
64   };